public enum TabulaModelHandler extends java.lang.Enum<TabulaModelHandler> 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<TabulaCubeContainer> |
getAllCubes(TabulaModelContainer model) |
TabulaCubeContainer |
getCubeByIdentifier(java.lang.String identifier,
TabulaModelContainer model) |
TabulaCubeContainer |
getCubeByName(java.lang.String name,
TabulaModelContainer model) |
net.minecraftforge.client.model.IModel |
loadModel(net.minecraft.util.ResourceLocation modelLocation) |
TabulaModelContainer |
loadTabulaModel(java.io.InputStream stream)
Load a
TabulaModelContainer from the model.json input stream. |
TabulaModelContainer |
loadTabulaModel(java.lang.String path)
Load a
TabulaModelContainer from the path. |
void |
onResourceManagerReload(net.minecraft.client.resources.IResourceManager manager) |
static TabulaModelHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TabulaModelHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TabulaModelHandler INSTANCE
public static TabulaModelHandler[] values()
for (TabulaModelHandler c : TabulaModelHandler.values()) System.out.println(c);
public static TabulaModelHandler 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 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 TabulaModelContainer loadTabulaModel(java.io.InputStream stream)
TabulaModelContainer from the model.json input stream.stream - the model.json input streamTabulaModelContainer instancepublic TabulaCubeContainer getCubeByName(java.lang.String name, TabulaModelContainer model)
name - the cube namemodel - the model containerpublic TabulaCubeContainer getCubeByIdentifier(java.lang.String identifier, TabulaModelContainer model)
identifier - the cube identifiermodel - the model containerpublic java.util.List<TabulaCubeContainer> getAllCubes(TabulaModelContainer model)
model - the model containerpublic void onResourceManagerReload(net.minecraft.client.resources.IResourceManager manager)
onResourceManagerReload in interface net.minecraft.client.resources.IResourceManagerReloadListeneronResourceManagerReload in interface net.minecraftforge.client.model.ICustomModelLoaderonResourceManagerReload in interface net.minecraftforge.client.resource.ISelectiveResourceReloadListenerpublic 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