getModel

@Nullable()
static BakedModel getModel(BakedModelManager manager, Identifier id)

An alternative to getModel that accepts an Identifier instead. Models loaded using ExtraModelProvider do not have acorresponding ModelIdentifier, 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 BakedModelManager has completed reloading. Otherwise, the result will benull or an old model.

Return

the model

Parameters

manager

the manager that holds models

id

the id of the model

Sources

jvm source
Link copied to clipboard