public static final class B3DLoader.B3DState extends java.lang.Object implements IModelState
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>,TRSRTransformation> |
cache |
private int |
frame |
private int |
nextFrame |
private IModelState |
parent |
private float |
progress |
Constructor and Description |
---|
B3DState(B3DModel.Animation animation,
int frame) |
B3DState(B3DModel.Animation animation,
int frame,
IModelState parent) |
B3DState(B3DModel.Animation animation,
int frame,
int nextFrame,
float progress) |
B3DState(B3DModel.Animation animation,
int frame,
int nextFrame,
float progress,
IModelState parent) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<TRSRTransformation> |
apply(java.util.Optional<? extends IModelPart> part) |
B3DModel.Animation |
getAnimation() |
int |
getFrame() |
int |
getNextFrame() |
static TRSRTransformation |
getNodeMatrix(B3DModel.Animation animation,
B3DModel.Node<?> node,
int frame) |
TRSRTransformation |
getNodeMatrix(B3DModel.Node<?> node) |
TRSRTransformation |
getNodeMatrix(B3DModel.Node<?> node,
int frame) |
IModelState |
getParent() |
private IModelState |
getParent(IModelState parent) |
float |
getProgress() |
@Nullable private final B3DModel.Animation animation
private final int frame
private final int nextFrame
private final float progress
@Nullable private final IModelState parent
private static com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Triple<B3DModel.Animation,B3DModel.Node<?>,java.lang.Integer>,TRSRTransformation> cache
public B3DState(@Nullable B3DModel.Animation animation, int frame)
public B3DState(@Nullable B3DModel.Animation animation, int frame, IModelState 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 IModelState parent)
@Nullable private IModelState getParent(@Nullable IModelState parent)
@Nullable public B3DModel.Animation getAnimation()
public int getFrame()
public int getNextFrame()
public float getProgress()
@Nullable public IModelState getParent()
public java.util.Optional<TRSRTransformation> apply(java.util.Optional<? extends IModelPart> part)
apply
in interface IModelState
public TRSRTransformation getNodeMatrix(B3DModel.Node<?> node)
public TRSRTransformation getNodeMatrix(B3DModel.Node<?> node, int frame)
public static TRSRTransformation getNodeMatrix(@Nullable B3DModel.Animation animation, B3DModel.Node<?> node, int frame)