Package dev.latvian.mods.kubejs.registry
Class RegistryKubeEvent<T>
java.lang.Object
dev.latvian.mods.kubejs.registry.RegistryKubeEvent<T>
- All Implemented Interfaces:
KubeEvent,KubeStartupEvent,AdditionalObjectRegistry
public class RegistryKubeEvent<T>
extends Object
implements KubeStartupEvent, AdditionalObjectRegistry
-
Field Summary
FieldsFields inherited from interface dev.latvian.mods.kubejs.event.KubeStartupEvent
BASIC -
Constructor Summary
ConstructorsConstructorDescriptionRegistryKubeEvent(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registryKey) -
Method Summary
Modifier and TypeMethodDescription<R> voidadd(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<R>> registry, BuilderBase<? extends R> builder) voidafterPosted(EventResult result) BuilderBase<? extends T> create(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id) BuilderBase<? extends T> create(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id, KubeResourceLocation type) createCustom(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id, Supplier<Object> object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, success
-
Field Details
-
created
-
-
Constructor Details
-
RegistryKubeEvent
public RegistryKubeEvent(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registryKey)
-
-
Method Details
-
create
public BuilderBase<? extends T> create(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id, KubeResourceLocation type) -
create
-
createCustom
public CustomBuilderObject createCustom(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id, Supplier<Object> object) -
afterPosted
- Specified by:
afterPostedin interfaceKubeEvent
-
add
public <R> void add(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<R>> registry, BuilderBase<? extends R> builder) - Specified by:
addin interfaceAdditionalObjectRegistry
-