public class ModelTransformComposition extends java.lang.Object implements IModelTransform
IModelTransform
that combines the transforms from two child IModelTransform
.Modifier and Type | Field and Description |
---|---|
private IModelTransform |
first |
private IModelTransform |
second |
private boolean |
uvLock |
Constructor and Description |
---|
ModelTransformComposition(IModelTransform first,
IModelTransform second) |
ModelTransformComposition(IModelTransform first,
IModelTransform second,
boolean uvLock) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
TransformationMatrix |
getPartTransformation(java.lang.Object part) |
TransformationMatrix |
getRotation() |
int |
hashCode() |
boolean |
isUvLock() |
private final IModelTransform first
private final IModelTransform second
private final boolean uvLock
public ModelTransformComposition(IModelTransform first, IModelTransform second)
public ModelTransformComposition(IModelTransform first, IModelTransform second, boolean uvLock)
public boolean isUvLock()
isUvLock
in interface IModelTransform
public TransformationMatrix getRotation()
getRotation
in interface IModelTransform
public TransformationMatrix getPartTransformation(java.lang.Object part)
getPartTransformation
in interface IForgeModelTransform
part
- Part of the model we are wanting to transform. An empty optional means
we want a transform for the entire model.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object