Class BakedModelManagerHelper
java.lang.Object
net.fabricmc.fabric.api.client.model.BakedModelManagerHelper
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BakedModelgetModel(BakedModelManager manager, Identifier id) Deprecated.An alternative toBakedModelManager.getModel(ModelIdentifier)that accepts anIdentifierinstead.
-
Method Details
-
getModel
Deprecated.An alternative toBakedModelManager.getModel(ModelIdentifier)that accepts anIdentifierinstead. Models loaded usingExtraModelProviderdo not have a correspondingModelIdentifier, so the vanilla method cannot be used to retrieve them. The Identifier that was used to load them can be used in this method to retrieve them.This method, as well as its vanilla counterpart, should only be used after the
BakedModelManagerhas completed reloading. Otherwise, the result will be null or an old model.- Parameters:
manager- the manager that holds modelsid- the id of the model- Returns:
- the model
-
FabricBakedModelManager.getModel(Identifier)instead.