Package foundry.veil.fabric.platform
Class FabricRegistrationFactory
java.lang.Object
foundry.veil.fabric.platform.FabricRegistrationFactory
- All Implemented Interfaces:
RegistrationProvider.Factory
@Internal
public class FabricRegistrationFactory
extends Object
implements RegistrationProvider.Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RegistrationProvider<T> Creates aRegistrationProvider.<T> RegistrationProvider<T> create(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, String modId) Creates aRegistrationProvider.
-
Constructor Details
-
FabricRegistrationFactory
public FabricRegistrationFactory()
-
-
Method Details
-
create
public <T> RegistrationProvider<T> create(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, String modId) Description copied from interface:RegistrationProvider.FactoryCreates aRegistrationProvider.- Specified by:
createin interfaceRegistrationProvider.Factory- Type Parameters:
T- the operand of the provider- Parameters:
key- theResourceKeyof the registry to create this provider formodId- the mod id for which the provider will register objects- Returns:
- the provider
-
create
Description copied from interface:RegistrationProvider.FactoryCreates aRegistrationProvider.- Specified by:
createin interfaceRegistrationProvider.Factory- Type Parameters:
T- the operand of the provider- Parameters:
registry- theRegistryto create this provider formodId- the mod id for which the provider will register objects- Returns:
- the provider
-