public class NPCPreset
extends Object
-
Nested Class Summary
Nested Classes
-
Field Summary
Fields
static final com.mojang.serialization.Codec<NPCPreset>
static final com.mojang.serialization.Codec<NPCPreset>
-
Method Summary
void
createNPC(net.minecraft.world.level.Level level)
fromJson(com.google.gson.JsonElement json)
net.minecraft.resources.ResourceLocation
com.google.gson.JsonElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CODEC
public static final com.mojang.serialization.Codec<NPCPreset> CODEC
-
NETWORK_CODEC
public static final com.mojang.serialization.Codec<NPCPreset> NETWORK_CODEC
-
Method Details
-
key
public net.minecraft.resources.ResourceLocation key()
-
createNPC
public NPC createNPC(net.minecraft.world.level.Level level)
-
-
apply
public void apply(NPC npc)
-
toJson
public com.google.gson.JsonElement toJson()
-
-
fromJson
public static NPCPreset fromJson(com.google.gson.JsonElement json)
-