public final class SimpleModelTransform extends java.lang.Object implements IModelTransform
| Modifier and Type | Field and Description |
|---|---|
private TransformationMatrix |
base |
static SimpleModelTransform |
IDENTITY |
private com.google.common.collect.ImmutableMap<?,TransformationMatrix> |
map |
| Constructor and Description |
|---|
SimpleModelTransform(com.google.common.collect.ImmutableMap<?,TransformationMatrix> map) |
SimpleModelTransform(com.google.common.collect.ImmutableMap<?,TransformationMatrix> map,
TransformationMatrix base) |
SimpleModelTransform(TransformationMatrix base) |
| Modifier and Type | Method and Description |
|---|---|
TransformationMatrix |
getPartTransformation(java.lang.Object part) |
TransformationMatrix |
getRotation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUvLockpublic static final SimpleModelTransform IDENTITY
private final com.google.common.collect.ImmutableMap<?,TransformationMatrix> map
private final TransformationMatrix base
public SimpleModelTransform(com.google.common.collect.ImmutableMap<?,TransformationMatrix> map)
public SimpleModelTransform(TransformationMatrix base)
public SimpleModelTransform(com.google.common.collect.ImmutableMap<?,TransformationMatrix> map, TransformationMatrix base)
public TransformationMatrix getRotation()
getRotation in interface IModelTransformpublic TransformationMatrix getPartTransformation(java.lang.Object part)
getPartTransformation in interface IForgeModelTransformpart - Part of the model we are wanting to transform. An empty optional means
we want a transform for the entire model.