Interface IModelTypeRegistry
- All Known Implementing Classes:
ModelTypeRegistry
public interface IModelTypeRegistry
The registry interface for model types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IModelTypeRegistryGets the current instance of the model type registry.@Nullable IModelTypegetModelType(net.minecraft.resources.ResourceLocation name) Get the model type from the registry or null if it doesn't exist.voidregister(IModelType modelType) Registry the given model type into the registry.
-
Method Details
-
getInstance
Gets the current instance of the model type registry.- Returns:
- The model type registry instance.
-
register
Registry the given model type into the registry.- Parameters:
modelType- The model type to register.
-
getModelType
Get the model type from the registry or null if it doesn't exist.- Parameters:
name- The name of the model in ResourceLocation format.- Returns:
- The model type or null if it doesn't exist.
-