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
FieldsModifier and TypeFieldDescriptionprivate final ModelStateprivate final ModelStateprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionCompositeModelState(ModelState first, ModelState second) CompositeModelState(ModelState first, ModelState second, boolean uvLock) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPartTransformation(Object part) inthashCode()boolean
-
Field Details
-
first
-
second
-
uvLock
private final boolean uvLock
-
-
Constructor Details
-
CompositeModelState
-
CompositeModelState
-
-
Method Details
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLockedin interfaceModelState
-
getRotation
- Specified by:
getRotationin interfaceModelState
-
getPartTransformation
- Specified by:
getPartTransformationin 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()
-