Class ContraptionRenderInfo

java.lang.Object
com.simibubi.create.content.contraptions.render.ContraptionRenderInfo

public class ContraptionRenderInfo extends Object
  • Field Details

    • CONTRAPTION

      public static final net.createmod.catnip.render.SuperByteBufferCache.Compartment<org.apache.commons.lang3.tuple.Pair<Contraption,net.minecraft.client.renderer.RenderType>> CONTRAPTION
  • Method Details

    • get

      public static ContraptionRenderInfo get(Contraption contraption)
    • invalidate

      public static boolean invalidate(Contraption contraption)
      Reset a contraption's renderer.
      Parameters:
      contraption - The contraption to invalidate.
      Returns:
      true if there was a renderer associated with the given contraption.
    • isDead

      public boolean isDead()
    • getContraption

      public Contraption getContraption()
    • getRenderWorld

      public VirtualRenderWorld getRenderWorld()
    • getMatrices

      public ContraptionMatrices getMatrices()
    • getBuffer

      public net.createmod.catnip.render.SuperByteBuffer getBuffer(net.minecraft.client.renderer.RenderType renderType)
    • invalidate

      public void invalidate()
    • setupRenderWorld

      public static VirtualRenderWorld setupRenderWorld(net.minecraft.world.level.Level level, Contraption c)