Package net.minecraftforge.client.model
Class SimpleModelTransform
java.lang.Object
net.minecraftforge.client.model.SimpleModelTransform
- All Implemented Interfaces:
IModelTransform
,IForgeModelTransform
Simple implementation of IModelState via a map and a default value.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TransformationMatrix
static final SimpleModelTransform
private final com.google.common.collect.ImmutableMap<?,
TransformationMatrix> -
Constructor Summary
ConstructorDescriptionSimpleModelTransform
(com.google.common.collect.ImmutableMap<?, TransformationMatrix> map) SimpleModelTransform
(com.google.common.collect.ImmutableMap<?, TransformationMatrix> map, TransformationMatrix 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.renderer.model.IModelTransform
isUvLocked
-
Field Details
-
IDENTITY
-
map
-
base
-
-
Constructor Details
-
SimpleModelTransform
-
SimpleModelTransform
-
SimpleModelTransform
public SimpleModelTransform(com.google.common.collect.ImmutableMap<?, TransformationMatrix> map, TransformationMatrix base)
-
-
Method Details
-
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.
-