Class FabricModelPredicateProviderRegistry

java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.client.model.FabricModelPredicateProviderRegistry

@Deprecated public final class FabricModelPredicateProviderRegistry extends Object
Deprecated.
Replaced by access wideners for ModelPredicateProviderRegistry registration methods in Fabric Transitive Access Wideners (v1).
Allows registering model predicate providers for item models.

A registered model predicate providers for an item can be retrieved through ModelPredicateProviderRegistry.get(net.minecraft.item.ItemStack, Identifier).

See Also:
  • Constructor Details

    • FabricModelPredicateProviderRegistry

      public FabricModelPredicateProviderRegistry()
      Deprecated.
  • Method Details

    • register

      public static void register(Identifier id, ClampedModelPredicateProvider provider)
      Deprecated.
      Registers a model predicate provider that is applicable for any item.
      Parameters:
      id - the identifier of the provider
      provider - the provider
    • register

      public static void register(Item item, Identifier id, ClampedModelPredicateProvider provider)
      Deprecated.
      Registers a model predicate provider to a specific item.
      Parameters:
      item - the item the provider is associated to
      id - the identifier of the provider
      provider - the provider