Class ContraptionMatrices
java.lang.Object
com.simibubi.create.content.contraptions.render.ContraptionMatrices
ContraptionMatrices must be cleared and setup per-contraption per-frame
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearStack(com.mojang.blaze3d.vertex.PoseStack ms) org.joml.Matrix4fgetLight()com.mojang.blaze3d.vertex.PoseStackgetModel()com.mojang.blaze3d.vertex.PoseStackcom.mojang.blaze3d.vertex.PoseStackorg.joml.Matrix4fgetWorld()static voidtransform(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.PoseStack transform) static voidtranslateToEntity(org.joml.Matrix4f matrix, net.minecraft.world.entity.Entity entity, float partialTicks)
-
Constructor Details
-
ContraptionMatrices
public ContraptionMatrices()
-
-
Method Details
-
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 org.joml.Matrix4f getWorld() -
getLight
public org.joml.Matrix4f getLight() -
transform
public static void transform(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.PoseStack transform) -
translateToEntity
public static void translateToEntity(org.joml.Matrix4f matrix, net.minecraft.world.entity.Entity entity, float partialTicks) -
clearStack
public static void clearStack(com.mojang.blaze3d.vertex.PoseStack ms)
-