Package dev.latvian.mods.kubejs.registry
Class ServerRegistryKubeEvent<T>
java.lang.Object
dev.latvian.mods.kubejs.registry.ServerRegistryKubeEvent<T>
- All Implemented Interfaces:
KubeEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerRegistryKubeEvent(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registryKey, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, com.mojang.serialization.Codec<T> codec, List<BuilderBase<?>> builders) -
Method Summary
Modifier and TypeMethodDescriptionBuilderBase<? 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) createFromJson(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id, com.google.gson.JsonElement json) 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
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, success
-
Field Details
-
registryKey
-
jsonOps
public final com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps -
codec
-
-
Constructor Details
-
ServerRegistryKubeEvent
public ServerRegistryKubeEvent(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registryKey, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, com.mojang.serialization.Codec<T> codec, List<BuilderBase<?>> builders)
-
-
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) -
createFromJson
public CustomBuilderObject createFromJson(dev.latvian.mods.rhino.Context cx, KubeResourceLocation id, com.google.gson.JsonElement json)
-