public interface ModelInstance<T>
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.model.IBakedModel |
bake(ModelBakingContext context)
Converts the model data into a baked model.
|
net.minecraft.client.renderer.model.BlockModel |
getAsVanillaModel()
Represents the model as a vanilla
BlockModel 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.model.IBakedModel bake(ModelBakingContext context)
context - context for baking the modelModelBakingContext@Nullable net.minecraft.client.renderer.model.BlockModel getAsVanillaModel()
BlockModel instance. May be used gather info from other models, such as with the vanilla 'parent' property.BlockModel instance, or null if such a representation is not available