Package com.supermartijn642.fusion.model
Class ModelInstanceImpl<T>
java.lang.Object
com.supermartijn642.fusion.model.ModelInstanceImpl<T>
- All Implemented Interfaces:
ModelInstance<T>
Created 29/04/2023 by SuperMartijn642
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.resources.model.BakedModelbake(ModelBakingContext context) Converts the model data into a baked model.@Nullable net.minecraft.client.renderer.block.model.BlockModelRepresents the model as a vanillaBlockModelinstance.Collection<net.minecraft.resources.ResourceLocation>Gets all the dependencies on other model files.Gets all the dependencies on sprites.
-
Constructor Details
-
ModelInstanceImpl
-
-
Method Details
-
getModelType
- Specified by:
getModelTypein interfaceModelInstance<T>
-
getModelData
- Specified by:
getModelDatain interfaceModelInstance<T>
-
getModelDependencies
Description copied from interface:ModelInstanceGets all the dependencies on other model files.- Specified by:
getModelDependenciesin interfaceModelInstance<T>
-
getTextureDependencies
Description copied from interface:ModelInstanceGets all the dependencies on sprites.- Specified by:
getTextureDependenciesin interfaceModelInstance<T>- Parameters:
context- context for gathering texture dependencies
-
getAsVanillaModel
@Nullable public @Nullable net.minecraft.client.renderer.block.model.BlockModel getAsVanillaModel()Description copied from interface:ModelInstanceRepresents the model as a vanillaBlockModelinstance. May be used gather info from other models, such as with the vanilla 'parent' property.- Specified by:
getAsVanillaModelin interfaceModelInstance<T>- Returns:
- a representation of the model as a vanilla
BlockModelinstance, ornullif such a representation is not available
-
bake
Description copied from interface:ModelInstanceConverts the model data into a baked model.- Specified by:
bakein interfaceModelInstance<T>- Parameters:
context- context for baking the model- Returns:
- a baked model
- See Also:
-