Package foundry.veil.platform.registry
Interface RegistrationProvider.Factory
- Enclosing interface:
RegistrationProvider<T>
public static interface RegistrationProvider.Factory
Factory class for
This class is loaded using
registration providers
. This class is loaded using
Service Loaders
, and only one
should exist per mod loader.-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> RegistrationProvider
<T> Creates aRegistrationProvider
.<T> RegistrationProvider
<T> create
(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, String modId) Creates aRegistrationProvider
.
-
Method Details
-
create
<T> RegistrationProvider<T> create(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, String modId) Creates aRegistrationProvider
.- Type Parameters:
T
- the operand of the provider- Parameters:
resourceKey
- theResourceKey
of the registry to create this provider formodId
- the mod id for which the provider will register objects- Returns:
- the provider
-
create
Creates aRegistrationProvider
.- Type Parameters:
T
- the operand of the provider- Parameters:
registry
- theRegistry
to create this provider formodId
- the mod id for which the provider will register objects- Returns:
- the provider
-