public final class FabricModelPredicateProviderRegistry extends Object
A registered model predicate providers for an item can be retrieved through
ModelPredicateProviderRegistry.get(Item, Identifier)
.
ModelPredicateProviderRegistry
Constructor and Description |
---|
FabricModelPredicateProviderRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
register(net.minecraft.util.Identifier id,
net.minecraft.client.item.ModelPredicateProvider provider)
Registers a model predicate provider that is applicable for any item.
|
static void |
register(net.minecraft.item.Item item,
net.minecraft.util.Identifier id,
net.minecraft.client.item.ModelPredicateProvider provider)
Registers a model predicate provider to a specific item.
|
public FabricModelPredicateProviderRegistry()
public static void register(net.minecraft.util.Identifier id, net.minecraft.client.item.ModelPredicateProvider provider)
id
- the identifier of the providerprovider
- the providerpublic static void register(net.minecraft.item.Item item, net.minecraft.util.Identifier id, net.minecraft.client.item.ModelPredicateProvider provider)
item
- the item the provider is associated toid
- the identifier of the providerprovider
- the provider