Class ComposedModelState
java.lang.Object
net.neoforged.neoforge.client.model.ComposedModelState
- All Implemented Interfaces:
net.minecraft.client.resources.model.ModelState
public final class ComposedModelState
extends Object
implements net.minecraft.client.resources.model.ModelState
Implementation of
ModelState
which prepends an additional transform onto the incoming ModelState
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.client.resources.model.ModelState
private final com.mojang.math.Transformation
Fields inherited from interface net.minecraft.client.resources.model.ModelState
NO_TRANSFORM
-
Constructor Summary
ConstructorsConstructorDescriptionComposedModelState
(net.minecraft.client.resources.model.ModelState parent, com.mojang.math.Transformation transformation) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Matrix4fc
faceTransformation
(net.minecraft.core.Direction side) org.joml.Matrix4fc
inverseFaceTransformation
(net.minecraft.core.Direction side) com.mojang.math.Transformation
-
Field Details
-
parent
private final net.minecraft.client.resources.model.ModelState parent -
transformation
private final com.mojang.math.Transformation transformation
-
-
Constructor Details
-
ComposedModelState
public ComposedModelState(net.minecraft.client.resources.model.ModelState parent, com.mojang.math.Transformation transformation)
-
-
Method Details
-
transformation
public com.mojang.math.Transformation transformation()- Specified by:
transformation
in interfacenet.minecraft.client.resources.model.ModelState
-
faceTransformation
public org.joml.Matrix4fc faceTransformation(net.minecraft.core.Direction side) - Specified by:
faceTransformation
in interfacenet.minecraft.client.resources.model.ModelState
-
inverseFaceTransformation
public org.joml.Matrix4fc inverseFaceTransformation(net.minecraft.core.Direction side) - Specified by:
inverseFaceTransformation
in interfacenet.minecraft.client.resources.model.ModelState
-