Class ContraptionMatrices
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionMatrices
ContraptionMatrices must be cleared and setup per-contraption per-frame
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()static voidclearStack(com.mojang.blaze3d.vertex.PoseStack ms) com.mojang.math.Matrix4fgetLight()com.mojang.blaze3d.vertex.PoseStackgetModel()com.mojang.blaze3d.vertex.PoseStackcom.mojang.blaze3d.vertex.PoseStackcom.mojang.math.Matrix4fgetWorld()booleanisReady()voidsetup(com.mojang.blaze3d.vertex.PoseStack viewProjection, AbstractContraptionEntity entity) static voidtransform(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.PoseStack transform) static voidtranslateToEntity(com.mojang.math.Matrix4f matrix, net.minecraft.world.entity.Entity entity, float partialTicks)
-
Constructor Details
-
ContraptionMatrices
public ContraptionMatrices()
-
-
Method Details
-
setup
public void setup(com.mojang.blaze3d.vertex.PoseStack viewProjection, AbstractContraptionEntity entity) -
clear
public void clear() -
getModelViewProjection
public com.mojang.blaze3d.vertex.PoseStack getModelViewProjection() -
getViewProjection
public com.mojang.blaze3d.vertex.PoseStack getViewProjection() -
getModel
public com.mojang.blaze3d.vertex.PoseStack getModel() -
getWorld
public com.mojang.math.Matrix4f getWorld() -
getLight
public com.mojang.math.Matrix4f getLight() -
isReady
public boolean isReady() -
transform
public static void transform(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.PoseStack transform) -
translateToEntity
public static void translateToEntity(com.mojang.math.Matrix4f matrix, net.minecraft.world.entity.Entity entity, float partialTicks) -
clearStack
public static void clearStack(com.mojang.blaze3d.vertex.PoseStack ms)
-