public interface ModelInstance<T>
| 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.
|
static <T> ModelInstance<T> |
of(ModelType<T> modelType,
T modelData) |
static <T> ModelInstance<T> of(ModelType<T> modelType, T modelData)
T getModelData()
java.util.Collection<net.minecraft.util.ResourceLocation> getModelDependencies()
java.util.Collection<SpriteIdentifier> getTextureDependencies(GatherTexturesContext context)
context - context for gathering texture dependenciesnet.minecraft.client.renderer.block.model.IBakedModel bake(ModelBakingContext context)
context - context for baking the modelModelBakingContext@Nullable net.minecraft.client.renderer.block.model.ModelBlock getAsVanillaModel()
ModelBlock instance. May be used gather info from other models, such as with the vanilla 'parent' property.ModelBlock instance, or null if such a representation is not available