Class RenderedContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderInfo
com.simibubi.create.content.contraptions.components.structureMovement.render.RenderedContraption
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.jozufozu.flywheel.backend.instancing.instancing.InstancingEngine<ContraptionProgram>Fields inherited from class com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderInfo
contraption, renderWorld -
Constructor Summary
ConstructorsConstructorDescriptionRenderedContraption(Contraption contraption, PlacementSimulationWorld renderWorld) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) voiddoRenderLayer(net.minecraft.client.renderer.RenderType layer, ContraptionProgram shader) voidvoidsetupMatrices(com.mojang.blaze3d.vertex.PoseStack viewProjection, double camX, double camY, double camZ) Need to call this during RenderLayerEvent.static voidsetupModelViewPartial(com.mojang.math.Matrix4f matrix, com.mojang.math.Matrix4f modelMatrix, AbstractContraptionEntity entity, double camX, double camY, double camZ, float pt) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderInfo
getEntityId, getMatrices, isDead, isVisible
-
Field Details
-
engine
public final com.jozufozu.flywheel.backend.instancing.instancing.InstancingEngine<ContraptionProgram> engine -
kinetics
-
-
Constructor Details
-
RenderedContraption
-
-
Method Details
-
getLighter
-
doRenderLayer
public void doRenderLayer(net.minecraft.client.renderer.RenderType layer, ContraptionProgram shader) -
beginFrame
public void beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) - Overrides:
beginFramein classContraptionRenderInfo
-
setupMatrices
public void setupMatrices(com.mojang.blaze3d.vertex.PoseStack viewProjection, double camX, double camY, double camZ) Description copied from class:ContraptionRenderInfoNeed to call this during RenderLayerEvent.- Overrides:
setupMatricesin classContraptionRenderInfo
-
invalidate
public void invalidate()- Overrides:
invalidatein classContraptionRenderInfo
-
setupModelViewPartial
public static void setupModelViewPartial(com.mojang.math.Matrix4f matrix, com.mojang.math.Matrix4f modelMatrix, AbstractContraptionEntity entity, double camX, double camY, double camZ, float pt)
-