Class SinglePosVirtualBlockGetter

java.lang.Object
dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter
dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
All Implemented Interfaces:
net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.LevelHeightAccessor, net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension, net.neoforged.neoforge.common.extensions.IBlockGetterExtension
Direct Known Subclasses:
NeoForgeSinglePosVirtualBlockGetter

public class SinglePosVirtualBlockGetter extends VirtualBlockGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable net.minecraft.world.level.block.entity.BlockEntity
     
    protected net.minecraft.world.level.block.state.BlockState
     
    protected net.minecraft.core.BlockPos
     

    Fields inherited from class dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter

    lightEngine
  • Constructor Summary

    Constructors
    Constructor
    Description
    SinglePosVirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    blockEntity(@Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
     
    blockState(net.minecraft.world.level.block.state.BlockState state)
     
     
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    int
     
    int
     
    pos(net.minecraft.core.BlockPos pos)
     

    Methods inherited from class dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter

    getBlockTint, getFluidState, getLightEngine, getShade

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter

    canSeeSky, getBrightness, getRawBrightness

    Methods inherited from interface net.minecraft.world.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension

    getShade

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension

    getAuxLightManager, getAuxLightManager, getModelData

    Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor

    getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
  • Field Details

    • pos

      protected net.minecraft.core.BlockPos pos
    • blockState

      protected net.minecraft.world.level.block.state.BlockState blockState
    • blockEntity

      @Nullable protected @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity
  • Constructor Details

    • SinglePosVirtualBlockGetter

      public SinglePosVirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc)
  • Method Details

    • createFullDark

      public static SinglePosVirtualBlockGetter createFullDark()
    • createFullBright

      public static SinglePosVirtualBlockGetter createFullBright()
    • pos

      public SinglePosVirtualBlockGetter pos(net.minecraft.core.BlockPos pos)
    • blockState

      public SinglePosVirtualBlockGetter blockState(net.minecraft.world.level.block.state.BlockState state)
    • blockEntity

      public SinglePosVirtualBlockGetter blockEntity(@Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    • getBlockEntity

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)
    • getHeight

      public int getHeight()
    • getMinBuildHeight

      public int getMinBuildHeight()