Class ContraptionRenderInfo
java.lang.Object
com.simibubi.create.content.contraptions.render.ContraptionRenderInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.createmod.catnip.render.SuperByteBufferCache.Compartment<org.apache.commons.lang3.tuple.Pair<Contraption, net.minecraft.client.renderer.RenderType>> -
Method Summary
Modifier and TypeMethodDescriptionstatic ContraptionRenderInfoget(Contraption contraption) net.createmod.catnip.render.SuperByteBuffergetBuffer(net.minecraft.client.renderer.RenderType renderType) voidstatic booleaninvalidate(Contraption contraption) Reset a contraption's renderer.booleanisDead()static VirtualRenderWorldsetupRenderWorld(net.minecraft.world.level.Level level, Contraption c)
-
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
-
invalidate
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
-
getRenderWorld
-
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)
-