Package net.minecraftforge.client.model
Class SimpleModelState
java.lang.Object
net.minecraftforge.client.model.SimpleModelState
- All Implemented Interfaces:
ModelState
,IForgeModelState
Simple implementation of IModelState via a map and a default value.
-
Field Summary
Modifier and TypeFieldDescriptionprivate Transformation
static SimpleModelState
private com.google.common.collect.ImmutableMap<?,Transformation>
-
Constructor Summary
ConstructorDescriptionSimpleModelState(com.google.common.collect.ImmutableMap<?,Transformation> map)
SimpleModelState(com.google.common.collect.ImmutableMap<?,Transformation> map, Transformation base)
SimpleModelState(Transformation base)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.resources.model.ModelState
isUvLocked
-
Field Details
-
IDENTITY
-
map
-
base
-
-
Constructor Details
-
SimpleModelState
-
SimpleModelState
-
SimpleModelState
public SimpleModelState(com.google.common.collect.ImmutableMap<?,Transformation> map, Transformation base)
-
-
Method Details
-
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.
-