Class NeoForgeRegister<T>
java.lang.Object
net.xun.lib.common.api.registries.Register<T>
net.xun.lib.neoforge.api.registries.NeoForgeRegister<T>
- All Implemented Interfaces:
Iterable<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeRegister(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String namespace) -
Method Summary
Modifier and TypeMethodDescriptionprotected <I extends T>
voidbind(RegistryHolder<T, I> holder) Binds a registry holder to the actual registry entry.voidregister()Performs final registration by binding all holders to the actual registry.Methods inherited from class net.xun.lib.common.api.registries.Register
create, create, createBlocks, createHolder, createItems, getEntries, getNamespace, getRegistryKey, iterator, registerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NeoForgeRegister
-
-
Method Details
-
register
public void register()Description copied from class:RegisterPerforms final registration by binding all holders to the actual registry.This should be called during mod initialization after the registry is available. Note: Certain registry types are bound immediately and skip this step.
-
bind
Description copied from class:RegisterBinds a registry holder to the actual registry entry.
-