Class ClientContraption
java.lang.Object
com.simibubi.create.content.contraptions.render.ClientContraption
- Direct Known Subclasses:
CarriageContraption.CarriageClientContraption
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the BitSet marking which block entities should be rendered, potentially with additional filtering.@Nullable net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos localPos) voidvoidprotected static voidpostprocessReadBlockEntity(net.minecraft.world.level.Level level, @Nullable net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.block.state.BlockState blockState) @Nullable net.minecraft.world.level.block.entity.BlockEntityreadBlockEntity(net.minecraft.world.level.Level level, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info, boolean legacy) voidintA version integer incremented each time the render level changes.
-
Field Details
-
renderedBlockEntityView
-
shouldRenderBlockEntities
-
scratchErroredBlockEntities
-
-
Constructor Details
-
ClientContraption
-
-
Method Details
-
structureVersion
public int structureVersion()A version integer incremented each time the render level changes. -
childrenVersion
public int childrenVersion() -
resetRenderLevel
public void resetRenderLevel() -
invalidateChildren
public void invalidateChildren() -
invalidateStructure
public void invalidateStructure() -
readBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity readBlockEntity(net.minecraft.world.level.Level level, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info, boolean legacy) -
postprocessReadBlockEntity
protected static void postprocessReadBlockEntity(net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.block.state.BlockState blockState) -
getRenderLevel
-
getMatrices
-
getRenderedBlocks
-
getBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos localPos) -
getAndAdjustShouldRenderBlockEntities
Get the BitSet marking which block entities should be rendered, potentially with additional filtering.Implementors: DO NOT modify
shouldRenderBlockEntitiesdirectly.
-