Class ModelTypeRegistry
java.lang.Object
com.minecolonies.core.client.render.modeltype.registry.ModelTypeRegistry
- All Implemented Interfaces:
IModelTypeRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IModelTypegetModelType(net.minecraft.resources.ResourceLocation name) Get the model type from the registry or null if it doesn't exist.voidregister(IModelType type) Registry the given model type into the registry.
-
Constructor Details
-
ModelTypeRegistry
public ModelTypeRegistry()
-
-
Method Details
-
register
Description copied from interface:IModelTypeRegistryRegistry the given model type into the registry.- Specified by:
registerin interfaceIModelTypeRegistry- Parameters:
type- The model type to register.
-
getModelType
Description copied from interface:IModelTypeRegistryGet the model type from the registry or null if it doesn't exist.- Specified by:
getModelTypein interfaceIModelTypeRegistry- Parameters:
name- The name of the model in ResourceLocation format.- Returns:
- The model type or null if it doesn't exist.
-