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, wait
isUvLock
public 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 IModelTransform
public TransformationMatrix getPartTransformation(java.lang.Object part)
getPartTransformation
in interface IForgeModelTransform
part
- Part of the model we are wanting to transform. An empty optional means
we want a transform for the entire model.