Class FlwContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderInfo
com.simibubi.create.content.contraptions.components.structureMovement.render.FlwContraption
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderInfo
contraption, renderWorld -
Constructor Summary
ConstructorsConstructorDescriptionFlwContraption(Contraption contraption, com.jozufozu.flywheel.core.virtual.VirtualRenderWorld renderWorld) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) voidvoidrenderInstanceLayer(com.jozufozu.flywheel.event.RenderLayerEvent event) voidrenderStructureLayer(net.minecraft.client.renderer.RenderType layer, ContraptionProgram shader) voidsetupMatrices(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) voidtick()Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderInfo
getEntityId, getMatrices, isDead, isVisible
-
Constructor Details
-
FlwContraption
public FlwContraption(Contraption contraption, com.jozufozu.flywheel.core.virtual.VirtualRenderWorld renderWorld)
-
-
Method Details
-
getLighter
-
renderStructureLayer
public void renderStructureLayer(net.minecraft.client.renderer.RenderType layer, ContraptionProgram shader) -
renderInstanceLayer
public void renderInstanceLayer(com.jozufozu.flywheel.event.RenderLayerEvent event) -
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) -
tick
public void tick()
-