public enum JurassicraftTabulaModelHandler extends java.lang.Enum<JurassicraftTabulaModelHandler> implements net.minecraftforge.client.model.ICustomModelLoader, com.google.gson.JsonDeserializationContext
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(net.minecraft.util.ResourceLocation modelLocation) |
void |
addDomain(java.lang.String domain) |
<T> T |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type) |
java.util.List<net.ilexiconn.llibrary.client.model.tabula.container.TabulaCubeContainer> |
getAllCubes(net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer model) |
net.ilexiconn.llibrary.client.model.tabula.container.TabulaCubeContainer |
getCubeByIdentifier(java.lang.String identifier,
net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer model) |
net.ilexiconn.llibrary.client.model.tabula.container.TabulaCubeContainer |
getCubeByName(java.lang.String name,
net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer model) |
net.minecraftforge.client.model.IModel |
loadModel(net.minecraft.util.ResourceLocation modelLocation) |
net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer |
loadTabulaModel(java.io.InputStream stream)
Load a
TabulaModelContainer from the model.json input stream. |
net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer |
loadTabulaModel(java.lang.String path)
Load a
TabulaModelContainer from the path. |
void |
onResourceManagerReload(net.minecraft.client.resources.IResourceManager manager) |
static JurassicraftTabulaModelHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JurassicraftTabulaModelHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JurassicraftTabulaModelHandler INSTANCE
public static JurassicraftTabulaModelHandler[] values()
for (JurassicraftTabulaModelHandler c : JurassicraftTabulaModelHandler.values()) System.out.println(c);
public static JurassicraftTabulaModelHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void addDomain(java.lang.String domain)
public net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer loadTabulaModel(java.lang.String path)
throws java.io.IOException
TabulaModelContainer from the path. A slash will be added if it isn't in the path already.path - the model pathTabulaModelContainer instancejava.io.IOException - if the file can't be foundpublic net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer loadTabulaModel(java.io.InputStream stream)
TabulaModelContainer from the model.json input stream.stream - the model.json input streamTabulaModelContainer instancepublic net.ilexiconn.llibrary.client.model.tabula.container.TabulaCubeContainer getCubeByName(java.lang.String name,
net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer model)
name - the cube namemodel - the model containerpublic net.ilexiconn.llibrary.client.model.tabula.container.TabulaCubeContainer getCubeByIdentifier(java.lang.String identifier,
net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer model)
identifier - the cube identifiermodel - the model containerpublic java.util.List<net.ilexiconn.llibrary.client.model.tabula.container.TabulaCubeContainer> getAllCubes(net.ilexiconn.llibrary.client.model.tabula.container.TabulaModelContainer model)
model - the model containerpublic void onResourceManagerReload(net.minecraft.client.resources.IResourceManager manager)
onResourceManagerReload in interface net.minecraft.client.resources.IResourceManagerReloadListenerpublic boolean accepts(net.minecraft.util.ResourceLocation modelLocation)
accepts in interface net.minecraftforge.client.model.ICustomModelLoaderpublic net.minecraftforge.client.model.IModel loadModel(net.minecraft.util.ResourceLocation modelLocation)
throws java.io.IOException
loadModel in interface net.minecraftforge.client.model.ICustomModelLoaderjava.io.IOExceptionpublic <T> T deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializationContextcom.google.gson.JsonParseException