Package org.moddingx.libx.registration
Interface Registerable.EntryCollector
- Enclosing interface:
Registerable
public static interface Registerable.EntryCollector
Interface to collect additional objects that are registered together with a
Registerable.-
Method Summary
Modifier and TypeMethodDescription<T> voidregister(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, T value) Registers a new object together with the current one.<T> voidregisterNamed(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String name, T value) Registers a new object together with the current one.
-
Method Details
-
register
<T> void register(@Nullable net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, T value) Registers a new object together with the current one. -
registerNamed
<T> void registerNamed(@Nullable net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String name, T value) Registers a new object together with the current one.- Parameters:
name- A name suffix for the object.
-