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 @Nullable BakedModel
getModel
(Identifier id) An alternative toBakedModelManager.getModel(ModelIdentifier)
that accepts anIdentifier
instead.
-
Method Details
-
getModel
An alternative toBakedModelManager.getModel(ModelIdentifier)
that accepts anIdentifier
instead. Models loaded usingModelLoadingPlugin.Context.addModels(net.minecraft.util.Identifier...)
do not have a correspondingModelIdentifier
, so the vanilla method cannot be used to retrieve them. TheIdentifier
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
BakedModelManager
has completed reloading. Otherwise, the result will be outdated or null.- Parameters:
id
- the id of the model- Returns:
- the model
-