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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable net.minecraft.world.level.block.entity.BlockEntityprotected net.minecraft.world.level.block.state.BlockStateprotected net.minecraft.core.BlockPosFields inherited from class dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter
lightEngine -
Constructor Summary
ConstructorsConstructorDescriptionSinglePosVirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc) -
Method Summary
Modifier and TypeMethodDescriptionblockEntity(@Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity) blockState(net.minecraft.world.level.block.state.BlockState state) static SinglePosVirtualBlockGetterstatic SinglePosVirtualBlockGetter@Nullable net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) intintpos(net.minecraft.core.BlockPos pos) Methods inherited from class dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter
getBlockTint, getFluidState, getLightEngine, getShadeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods 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
-
createFullBright
-
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()
-