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 final com.google.common.collect.ImmutableMap<String,
ModelBlockAnimation.MBClip> private static final ModelBlockAnimation
private com.google.common.collect.ImmutableMultimap<Integer,
ModelBlockAnimation.MBJointWeight> private final com.google.common.collect.ImmutableMap<String,
com.google.common.collect.ImmutableMap<String, float[]>> private static final org.apache.logging.log4j.Logger
private static final 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
(IModelTransform state, int i) getPartTransform
(IModelTransform state, BlockPart part, int i) static ModelBlockAnimation
loadVanillaAnimation
(IResourceManager 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
@Nullable public TransformationMatrix getPartTransform(IModelTransform state, BlockPart part, int i) -
getPartTransform
-
loadVanillaAnimation
public static ModelBlockAnimation loadVanillaAnimation(IResourceManager manager, ResourceLocation armatureLocation) Load armature associated with a vanilla model.
-