Class ModelBlockAnimation
java.lang.Object
net.minecraftforge.client.model.animation.ModelBlockAnimation
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
protected static class
protected static class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.google.common.collect.ImmutableMap<String,ModelBlockAnimation.MBClip>
private static ModelBlockAnimation
private com.google.common.collect.ImmutableMultimap<Integer,ModelBlockAnimation.MBJointWeight>
private com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,float[]>>
private static org.apache.logging.log4j.Logger
private static com.google.gson.Gson
-
Constructor Summary
ConstructorDescriptionModelBlockAnimation(com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,float[]>> joints, com.google.common.collect.ImmutableMap<String,ModelBlockAnimation.MBClip> clips)
-
Method Summary
Modifier and TypeMethodDescriptiongetClips()
com.google.common.collect.ImmutableCollection<ModelBlockAnimation.MBJointWeight>
getJoint(int i)
getPartTransform(ModelState state, int i)
getPartTransform(ModelState state, BlockElement part, int i)
static ModelBlockAnimation
loadVanillaAnimation(ResourceManager manager, ResourceLocation armatureLocation)
Load armature associated with a vanilla model.
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
joints
-
clips
-
jointIndexMap
private transient com.google.common.collect.ImmutableMultimap<Integer,ModelBlockAnimation.MBJointWeight> jointIndexMap -
mbaGson
private static final com.google.gson.Gson mbaGson -
defaultModelBlockAnimation
-
-
Constructor Details
-
ModelBlockAnimation
public ModelBlockAnimation(com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,float[]>> joints, com.google.common.collect.ImmutableMap<String,ModelBlockAnimation.MBClip> clips)
-
-
Method Details
-
getClips
-
getJoint
public com.google.common.collect.ImmutableCollection<ModelBlockAnimation.MBJointWeight> getJoint(int i) -
getPartTransform
-
getPartTransform
-
loadVanillaAnimation
public static ModelBlockAnimation loadVanillaAnimation(ResourceManager manager, ResourceLocation armatureLocation)Load armature associated with a vanilla model.
-