public class ModelBlockAnimation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ModelBlockAnimation.MBClip |
protected static class |
ModelBlockAnimation.MBJoint |
protected static class |
ModelBlockAnimation.MBJointWeight |
protected static class |
ModelBlockAnimation.MBVariableClip |
protected static class |
ModelBlockAnimation.Parameter |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip> |
clips |
private static ModelBlockAnimation |
defaultModelBlockAnimation |
private com.google.common.collect.ImmutableMultimap<java.lang.Integer,ModelBlockAnimation.MBJointWeight> |
jointIndexMap |
private com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableMap<java.lang.String,float[]>> |
joints |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static com.google.gson.Gson |
mbaGson |
Constructor and Description |
---|
ModelBlockAnimation(com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableMap<java.lang.String,float[]>> joints,
com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip> clips) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<java.lang.String,? extends IClip> |
getClips() |
com.google.common.collect.ImmutableCollection<ModelBlockAnimation.MBJointWeight> |
getJoint(int i) |
TransformationMatrix |
getPartTransform(IModelTransform state,
BlockPart part,
int i) |
TransformationMatrix |
getPartTransform(IModelTransform state,
int i) |
static ModelBlockAnimation |
loadVanillaAnimation(IResourceManager manager,
ResourceLocation armatureLocation)
Load armature associated with a vanilla model.
|
private static final org.apache.logging.log4j.Logger LOGGER
private final com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableMap<java.lang.String,float[]>> joints
private final com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip> clips
private transient com.google.common.collect.ImmutableMultimap<java.lang.Integer,ModelBlockAnimation.MBJointWeight> jointIndexMap
private static final com.google.gson.Gson mbaGson
private static final ModelBlockAnimation defaultModelBlockAnimation
public ModelBlockAnimation(com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableMap<java.lang.String,float[]>> joints, com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip> clips)
public com.google.common.collect.ImmutableMap<java.lang.String,? extends IClip> getClips()
public com.google.common.collect.ImmutableCollection<ModelBlockAnimation.MBJointWeight> getJoint(int i)
@Nullable public TransformationMatrix getPartTransform(IModelTransform state, BlockPart part, int i)
@Nullable public TransformationMatrix getPartTransform(IModelTransform state, int i)
public static ModelBlockAnimation loadVanillaAnimation(IResourceManager manager, ResourceLocation armatureLocation)