public final class SimpleModelState extends java.lang.Object implements IModelState, ISprite
Constructor and Description |
---|
SimpleModelState(com.google.common.collect.ImmutableMap<? extends IModelPart,TRSRTransformation> map) |
SimpleModelState(com.google.common.collect.ImmutableMap<? extends IModelPart,TRSRTransformation> map,
java.util.Optional<TRSRTransformation> def) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<TRSRTransformation> |
apply(java.util.Optional<? extends IModelPart> part) |
IModelState |
getState() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRotation, isUvLock
public SimpleModelState(com.google.common.collect.ImmutableMap<? extends IModelPart,TRSRTransformation> map)
public SimpleModelState(com.google.common.collect.ImmutableMap<? extends IModelPart,TRSRTransformation> map, java.util.Optional<TRSRTransformation> def)
public IModelState getState()
public java.util.Optional<TRSRTransformation> apply(java.util.Optional<? extends IModelPart> part)
apply
in interface IModelState
part
- Part of the model we are wanting to transform. An empty optional means
we want a transform for the entire model.