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