Interface FabricBakedModelManager
public interface FabricBakedModelManager
Fabric-provided helper methods for
ModelManager.
Note: This interface is automatically implemented on the ModelManager via Mixin and interface injection.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> @Nullable TgetModel(ExtraModelKey<T> key) Get an extra model from the model manager.
-
Method Details
-
getModel
Get an extra model from the model manager.This can be used to retrieve models loaded using
ModelLoadingPlugin.Context.addModel(ExtraModelKey, UnbakedExtraModel).This method, as well as its vanilla counterpart, should only be used after the
ModelManagerhas completed reloading. Otherwise, the result will be outdated or an exception will be thrown.- Parameters:
key- the key of the model- Returns:
- the model, or
nullif it cannot be found. - See Also:
-