public class UnknownModelType extends java.lang.Object implements ModelType<net.minecraftforge.client.model.IModel>
| Constructor and Description |
|---|
UnknownModelType() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.block.model.IBakedModel |
bake(ModelBakingContext context,
net.minecraftforge.client.model.IModel data)
Converts the model data into a baked model.
|
net.minecraftforge.client.model.IModel |
deserialize(com.google.gson.JsonObject json)
Deserializes the given json to some data.
|
java.util.Collection<net.minecraft.util.ResourceLocation> |
getModelDependencies(net.minecraftforge.client.model.IModel data)
Gets all the dependencies on other model files.
|
java.util.Collection<SpriteIdentifier> |
getTextureDependencies(GatherTexturesContext context,
net.minecraftforge.client.model.IModel data)
Gets all the dependencies on sprites.
|
com.google.gson.JsonObject |
serialize(net.minecraftforge.client.model.IModel value)
Serializes the given data to json.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsVanillaModelpublic net.minecraftforge.client.model.IModel deserialize(com.google.gson.JsonObject json)
throws com.google.gson.JsonParseException
Serializerdeserialize in interface Serializer<net.minecraftforge.client.model.IModel>com.google.gson.JsonParseException - if the given json does not match the expected formatpublic com.google.gson.JsonObject serialize(net.minecraftforge.client.model.IModel value)
Serializerserialize in interface Serializer<net.minecraftforge.client.model.IModel>public java.util.Collection<net.minecraft.util.ResourceLocation> getModelDependencies(net.minecraftforge.client.model.IModel data)
ModelTypegetModelDependencies in interface ModelType<net.minecraftforge.client.model.IModel>data - custom model datapublic java.util.Collection<SpriteIdentifier> getTextureDependencies(GatherTexturesContext context, net.minecraftforge.client.model.IModel data)
ModelTypegetTextureDependencies in interface ModelType<net.minecraftforge.client.model.IModel>context - context for gathering texture dependenciesdata - custom model dataGatherTexturesContextpublic net.minecraft.client.renderer.block.model.IBakedModel bake(ModelBakingContext context, net.minecraftforge.client.model.IModel data)
ModelTypebake in interface ModelType<net.minecraftforge.client.model.IModel>context - context for baking the modeldata - custom model dataModelBakingContext