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
FieldsModifier and TypeFieldDescriptionprivate final TransformationMatrixstatic final SimpleModelTransformprivate final com.google.common.collect.ImmutableMap<?,TransformationMatrix> -
Constructor Summary
ConstructorsConstructorDescriptionSimpleModelTransform(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, waitMethods 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:
getRotationin interfaceIModelTransform
-
getPartTransformation
- Specified by:
getPartTransformationin 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.
-