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 BakedModel
getModel
(Identifier id) Similar toBakedModelManager.getModel(ModelIdentifier)
, but accepts anIdentifier
instead of aModelIdentifier
.
-
Method Details
-
getModel
Similar toBakedModelManager.getModel(ModelIdentifier)
, but accepts anIdentifier
instead of aModelIdentifier
. Use this method to retrieve models loaded usingModelLoadingPlugin.Context.addModels(net.minecraft.util.Identifier...)
, since those models do not have correspondingModelIdentifier
s.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:
id
- the id of the model- Returns:
- the model
-