public class ModelInstanceImpl<T> extends java.lang.Object implements ModelInstance<T>
| Constructor and Description |
|---|
ModelInstanceImpl(ModelType<T> modelType,
T modelData) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.block.model.IBakedModel |
bake(ModelBakingContext context)
Converts the model data into a baked model.
|
net.minecraft.client.renderer.block.model.ModelBlock |
getAsVanillaModel()
Represents the model as a vanilla
ModelBlock instance. |
T |
getModelData() |
java.util.Collection<net.minecraft.util.ResourceLocation> |
getModelDependencies()
Gets all the dependencies on other model files.
|
ModelType<T> |
getModelType() |
java.util.Collection<SpriteIdentifier> |
getTextureDependencies(GatherTexturesContext context)
Gets all the dependencies on sprites.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic ModelType<T> getModelType()
getModelType in interface ModelInstance<T>public T getModelData()
getModelData in interface ModelInstance<T>public java.util.Collection<net.minecraft.util.ResourceLocation> getModelDependencies()
ModelInstancegetModelDependencies in interface ModelInstance<T>public java.util.Collection<SpriteIdentifier> getTextureDependencies(GatherTexturesContext context)
ModelInstancegetTextureDependencies in interface ModelInstance<T>context - context for gathering texture dependencies@Nullable public net.minecraft.client.renderer.block.model.ModelBlock getAsVanillaModel()
ModelInstanceModelBlock instance. May be used gather info from other models, such as with the vanilla 'parent' property.getAsVanillaModel in interface ModelInstance<T>ModelBlock instance, or null if such a representation is not availablepublic net.minecraft.client.renderer.block.model.IBakedModel bake(ModelBakingContext context)
ModelInstancebake in interface ModelInstance<T>context - context for baking the modelModelBakingContext