java.lang.Object
com.minecolonies.core.client.render.modeltype.registry.ModelTypeRegistry
All Implemented Interfaces:
IModelTypeRegistry

public class ModelTypeRegistry extends Object implements IModelTypeRegistry
  • Constructor Details

    • ModelTypeRegistry

      public ModelTypeRegistry()
  • Method Details

    • register

      public void register(IModelType type)
      Description copied from interface: IModelTypeRegistry
      Registry the given model type into the registry.
      Specified by:
      register in interface IModelTypeRegistry
      Parameters:
      type - The model type to register.
    • getModelType

      @Nullable public @Nullable IModelType getModelType(net.minecraft.resources.ResourceLocation name)
      Description copied from interface: IModelTypeRegistry
      Get the model type from the registry or null if it doesn't exist.
      Specified by:
      getModelType in interface IModelTypeRegistry
      Parameters:
      name - The name of the model in ResourceLocation format.
      Returns:
      The model type or null if it doesn't exist.