Class BakedModelManagerHelper

java.lang.Object
net.fabricmc.fabric.api.client.model.BakedModelManagerHelper

@Deprecated public final class BakedModelManagerHelper extends Object
  • Method Details

    • getModel

      @Nullable public static @Nullable BakedModel getModel(BakedModelManager manager, Identifier id)
      Deprecated.
      An alternative to BakedModelManager.getModel(ModelIdentifier) that accepts an Identifier instead. Models loaded using ExtraModelProvider do not have a corresponding 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 be null or an old model.

      Parameters:
      manager - the manager that holds models
      id - the id of the model
      Returns:
      the model