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> T
getModel
(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
BakedModelManager
has 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
null
if it cannot be found. - See Also:
-