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
Modifier and TypeFieldDescriptionprivate final IModelTransform
private final IModelTransform
private final boolean
-
Constructor Summary
ConstructorDescriptionModelTransformComposition
(IModelTransform first, IModelTransform second) ModelTransformComposition
(IModelTransform first, IModelTransform second, boolean uvLock) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPartTransformation
(Object part) int
hashCode()
boolean
-
Field Details
-
first
-
second
-
uvLock
private final boolean uvLock
-
-
Constructor Details
-
ModelTransformComposition
-
ModelTransformComposition
-
-
Method Details
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLocked
in interfaceIModelTransform
-
getRotation
- Specified by:
getRotation
in interfaceIModelTransform
-
getPartTransformation
- 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
-
hashCode
public int hashCode()
-