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 classModelBlockAnimation.MBClipprotected static classModelBlockAnimation.MBJointprotected static classModelBlockAnimation.MBJointWeightprotected static classModelBlockAnimation.MBVariableClipprotected static classModelBlockAnimation.Parameter
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip>clipsprivate static ModelBlockAnimationdefaultModelBlockAnimationprivate com.google.common.collect.ImmutableMultimap<java.lang.Integer,ModelBlockAnimation.MBJointWeight>jointIndexMapprivate com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableMap<java.lang.String,float[]>>jointsprivate static org.apache.logging.log4j.LoggerLOGGERprivate static com.google.gson.GsonmbaGson
-
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)TransformationMatrixgetPartTransform(IModelTransform state, int i)TransformationMatrixgetPartTransform(IModelTransform state, BlockPart part, int i)static ModelBlockAnimationloadVanillaAnimation(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.
-
-