Package net.minecraftforge.client.model
Class CompositeModelState
java.lang.Object
net.minecraftforge.client.model.CompositeModelState
- All Implemented Interfaces:
ModelState
,IForgeModelState
An
ModelState
that combines the transforms from two child ModelState
.-
Field Summary
Modifier and TypeFieldDescriptionprivate final ModelState
private final ModelState
private final boolean
-
Constructor Summary
ConstructorDescriptionCompositeModelState
(ModelState first, ModelState second) CompositeModelState
(ModelState first, ModelState 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
-
CompositeModelState
-
CompositeModelState
-
-
Method Details
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLocked
in interfaceModelState
-
getRotation
- Specified by:
getRotation
in interfaceModelState
-
getPartTransformation
- Specified by:
getPartTransformation
in interfaceIForgeModelState
- 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()
-