Interface ModelLoadingRegistry
public interface ModelLoadingRegistry
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerAppender
(ModelAppender appender) Deprecated.void
registerModelProvider
(ExtraModelProvider appender) Register a model provider, which can request loading additional models.void
registerResourceProvider
(Function<net.minecraft.resource.ResourceManager, ModelResourceProvider> providerSupplier) Register a ModelResourceProvider supplier.void
registerVariantProvider
(Function<net.minecraft.resource.ResourceManager, ModelVariantProvider> providerSupplier) Register a ModelVariantProvider supplier.
-
Field Details
-
INSTANCE
-
-
Method Details
-
registerModelProvider
Register a model provider, which can request loading additional models.- See Also:
-
registerAppender
Deprecated.UseregisterModelProvider(ExtraModelProvider)
instead, which supports loading of plainIdentifier
sRegister a model appender, which can request loading additional models. -
registerResourceProvider
void registerResourceProvider(Function<net.minecraft.resource.ResourceManager, ModelResourceProvider> providerSupplier) Register a ModelResourceProvider supplier.- Parameters:
providerSupplier
- The ModelResourceProvider supplier, instantiated with every ModelLoader.
-
registerVariantProvider
void registerVariantProvider(Function<net.minecraft.resource.ResourceManager, ModelVariantProvider> providerSupplier) Register a ModelVariantProvider supplier.- Parameters:
providerSupplier
- The ModelVariantProvider supplier, instantiated with every ModelLoader.
-
registerModelProvider(ExtraModelProvider)
instead, which supports loading of plainIdentifier
s