Interface IModelTypeRegistry

All Known Implementing Classes:
ModelTypeRegistry

public interface IModelTypeRegistry
The registry interface for model types.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the current instance of the model type registry.
    @Nullable IModelType
    getModelType(net.minecraft.resources.ResourceLocation name)
    Get the model type from the registry or null if it doesn't exist.
    void
    register(IModelType modelType)
    Registry the given model type into the registry.
  • Method Details

    • getInstance

      static IModelTypeRegistry getInstance()
      Gets the current instance of the model type registry.
      Returns:
      The model type registry instance.
    • register

      void register(IModelType modelType)
      Registry the given model type into the registry.
      Parameters:
      modelType - The model type to register.
    • getModelType

      @Nullable @Nullable IModelType getModelType(net.minecraft.resources.ResourceLocation name)
      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.