public static final class B3DLoader.B3DState extends java.lang.Object implements IModelTransform
Modifier and Type | Field and Description |
---|---|
private B3DModel.Animation |
animation |
private static com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Triple<B3DModel.Animation,B3DModel.Node<?>,java.lang.Integer>,TransformationMatrix> |
cache |
private int |
frame |
private int |
nextFrame |
private IModelTransform |
parent |
private float |
progress |
Constructor and Description |
---|
B3DState(B3DModel.Animation animation,
int frame) |
B3DState(B3DModel.Animation animation,
int frame,
IModelTransform parent) |
B3DState(B3DModel.Animation animation,
int frame,
int nextFrame,
float progress) |
B3DState(B3DModel.Animation animation,
int frame,
int nextFrame,
float progress,
IModelTransform parent) |
Modifier and Type | Method and Description |
---|---|
B3DModel.Animation |
getAnimation() |
int |
getFrame() |
int |
getNextFrame() |
static TransformationMatrix |
getNodeMatrix(B3DModel.Animation animation,
B3DModel.Node<?> node,
int frame) |
TransformationMatrix |
getNodeMatrix(B3DModel.Node<?> node) |
TransformationMatrix |
getNodeMatrix(B3DModel.Node<?> node,
int frame) |
IModelTransform |
getParent() |
private IModelTransform |
getParent(IModelTransform parent) |
TransformationMatrix |
getPartTransformation(java.lang.Object part) |
float |
getProgress() |
TransformationMatrix |
getRotation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isUvLock
@Nullable private final B3DModel.Animation animation
private final int frame
private final int nextFrame
private final float progress
@Nullable private final IModelTransform parent
private static com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Triple<B3DModel.Animation,B3DModel.Node<?>,java.lang.Integer>,TransformationMatrix> cache
public B3DState(@Nullable B3DModel.Animation animation, int frame)
public B3DState(@Nullable B3DModel.Animation animation, int frame, IModelTransform parent)
public B3DState(@Nullable B3DModel.Animation animation, int frame, int nextFrame, float progress)
public B3DState(@Nullable B3DModel.Animation animation, int frame, int nextFrame, float progress, @Nullable IModelTransform parent)
@Nullable private IModelTransform getParent(@Nullable IModelTransform parent)
@Nullable public B3DModel.Animation getAnimation()
public int getFrame()
public int getNextFrame()
public float getProgress()
@Nullable public IModelTransform getParent()
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.public TransformationMatrix getNodeMatrix(B3DModel.Node<?> node)
public TransformationMatrix getNodeMatrix(B3DModel.Node<?> node, int frame)
public static TransformationMatrix getNodeMatrix(@Nullable B3DModel.Animation animation, B3DModel.Node<?> node, int frame)