Package net.minecraftforge.client.model
Class ModelTransformComposition
- java.lang.Object
-
- net.minecraftforge.client.model.ModelTransformComposition
-
- All Implemented Interfaces:
IModelTransform
,IForgeModelTransform
public class ModelTransformComposition extends java.lang.Object implements IModelTransform
AnIModelTransform
that combines the transforms from two childIModelTransform
.
-
-
Field Summary
Fields Modifier and Type Field Description private IModelTransform
first
private IModelTransform
second
private boolean
uvLock
-
Constructor Summary
Constructors Constructor Description ModelTransformComposition(IModelTransform first, IModelTransform second)
ModelTransformComposition(IModelTransform first, IModelTransform second, boolean uvLock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
TransformationMatrix
getPartTransformation(java.lang.Object part)
TransformationMatrix
getRotation()
int
hashCode()
boolean
isUvLocked()
-
-
-
Field Detail
-
first
private final IModelTransform first
-
second
private final IModelTransform second
-
uvLock
private final boolean uvLock
-
-
Constructor Detail
-
ModelTransformComposition
public ModelTransformComposition(IModelTransform first, IModelTransform second)
-
ModelTransformComposition
public ModelTransformComposition(IModelTransform first, IModelTransform second, boolean uvLock)
-
-
Method Detail
-
isUvLocked
public boolean isUvLocked()
- Specified by:
isUvLocked
in interfaceIModelTransform
-
getRotation
public TransformationMatrix getRotation()
- Specified by:
getRotation
in interfaceIModelTransform
-
getPartTransformation
public TransformationMatrix getPartTransformation(java.lang.Object part)
- Specified by:
getPartTransformation
in interfaceIForgeModelTransform
- Parameters:
part
- Part of the model we are wanting to transform. An empty optional means we want a transform for the entire model.- Returns:
- A transformation to apply to the part, if any. The coordinate system of the transform is determined by the part type.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-