Package net.minecraftforge.client.model
Class ModelTransformComposition
java.lang.Object
net.minecraftforge.client.model.ModelTransformComposition
- All Implemented Interfaces:
IModelTransform,IForgeModelTransform
An
IModelTransform that combines the transforms from two child IModelTransform.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IModelTransformprivate final IModelTransformprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionModelTransformComposition(IModelTransform first, IModelTransform second) ModelTransformComposition(IModelTransform first, IModelTransform second, boolean uvLock) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPartTransformation(Object part) inthashCode()boolean
-
Field Details
-
first
-
second
-
uvLock
private final boolean uvLock
-
-
Constructor Details
-
ModelTransformComposition
-
ModelTransformComposition
-
-
Method Details
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLockedin interfaceIModelTransform
-
getRotation
- Specified by:
getRotationin interfaceIModelTransform
-
getPartTransformation
- Specified by:
getPartTransformationin 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
-
hashCode
public int hashCode()
-