Class ClientContraption

java.lang.Object
com.simibubi.create.content.contraptions.render.ClientContraption
Direct Known Subclasses:
CarriageContraption.CarriageClientContraption

public class ClientContraption extends Object
  • Field Details

    • renderedBlockEntityView

      public final List<net.minecraft.world.level.block.entity.BlockEntity> renderedBlockEntityView
    • shouldRenderBlockEntities

      public final BitSet shouldRenderBlockEntities
    • scratchErroredBlockEntities

      public final BitSet scratchErroredBlockEntities
  • Constructor Details

    • ClientContraption

      public ClientContraption(Contraption contraption)
  • 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

      public VirtualRenderWorld getRenderLevel()
    • getMatrices

      public ContraptionMatrices getMatrices()
    • getRenderedBlocks

      public ClientContraption.RenderedBlocks getRenderedBlocks()
    • getBlockEntity

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

      public BitSet getAndAdjustShouldRenderBlockEntities()
      Get the BitSet marking which block entities should be rendered, potentially with additional filtering.

      Implementors: DO NOT modify shouldRenderBlockEntities directly.