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 BakedModelgetModel(Identifier id) An alternative toBakedModelManager.getModel(ModelIdentifier)that accepts anIdentifierinstead.
-
Method Details
-
getModel
An alternative toBakedModelManager.getModel(ModelIdentifier)that accepts anIdentifierinstead. Models loaded usingModelLoadingPlugin.Context.addModels(net.minecraft.util.Identifier...)do not have a correspondingModelIdentifier, so the vanilla method cannot be used to retrieve them. TheIdentifierthat 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 outdated or null.- Parameters:
id- the id of the model- Returns:
- the model
-