Interface FabricBakedModelManager
public interface FabricBakedModelManager
Fabric-provided helper methods for
BakedModelManager.
Note: This interface is automatically implemented on the BakedModelManager via Mixin and interface injection.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> 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
BakedModelManagerhas 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:
-