public class AnimationImporter extends java.lang.Object implements IAnimationLoader
| Constructor and Description |
|---|
AnimationImporter(net.minecraft.util.ResourceLocation resourceLocation)
Instantiates a new
AnimationImporter. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<java.lang.String,net.malisis.core.renderer.model.loader.AnimationImporter.Anim> |
deserializeAnim(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
Deserialize "anims" multimap.
|
com.google.common.collect.Multimap<java.lang.String,Animation<Shape>> |
getAnimations(java.util.Map<java.lang.String,Shape> shapes)
Build and return the
Animations. |
Transformation<?,Shape> |
getTransform(java.lang.String name)
Gets the
Transformation from its name. |
void |
load(net.minecraft.util.ResourceLocation resourceLocation)
Loads and reads the JSON.
|
public AnimationImporter(net.minecraft.util.ResourceLocation resourceLocation)
AnimationImporter.resourceLocation - the resource locationpublic com.google.common.collect.Multimap<java.lang.String,Animation<Shape>> getAnimations(java.util.Map<java.lang.String,Shape> shapes)
Animations.getAnimations in interface IAnimationLoadershapes - the shapespublic void load(net.minecraft.util.ResourceLocation resourceLocation)
resourceLocation - the resource locationpublic Transformation<?,Shape> getTransform(java.lang.String name)
Transformation from its name.name - the namepublic com.google.common.collect.Multimap<java.lang.String,net.malisis.core.renderer.model.loader.AnimationImporter.Anim> deserializeAnim(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
json - the jsontypeOfT - the type of tcontext - the contextcom.google.gson.JsonParseException - the json parse exception