Class ModelBlockAnimation
- java.lang.Object
-
- net.minecraftforge.client.model.animation.ModelBlockAnimation
-
public class ModelBlockAnimation extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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, int i)
TransformationMatrix
getPartTransform(IModelTransform state, BlockPart part, int i)
static ModelBlockAnimation
loadVanillaAnimation(IResourceManager manager, ResourceLocation armatureLocation)
Load armature associated with a vanilla model.
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
joints
private final com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableMap<java.lang.String,float[]>> joints
-
clips
private final com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip> clips
-
jointIndexMap
private transient com.google.common.collect.ImmutableMultimap<java.lang.Integer,ModelBlockAnimation.MBJointWeight> jointIndexMap
-
mbaGson
private static final com.google.gson.Gson mbaGson
-
defaultModelBlockAnimation
private static final ModelBlockAnimation defaultModelBlockAnimation
-
-
Constructor Detail
-
ModelBlockAnimation
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)
-
-
Method Detail
-
getClips
public com.google.common.collect.ImmutableMap<java.lang.String,? extends IClip> getClips()
-
getJoint
public com.google.common.collect.ImmutableCollection<ModelBlockAnimation.MBJointWeight> getJoint(int i)
-
getPartTransform
@Nullable public TransformationMatrix getPartTransform(IModelTransform state, BlockPart part, int i)
-
getPartTransform
@Nullable public TransformationMatrix getPartTransform(IModelTransform state, int i)
-
loadVanillaAnimation
public static ModelBlockAnimation loadVanillaAnimation(IResourceManager manager, ResourceLocation armatureLocation)
Load armature associated with a vanilla model.
-
-