Package com.pixelmonmod.pixelmon.api.npc
Class NPCPreset
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.NPCPreset
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static NPCPreset.Builder
builder()
createNPC
(net.minecraft.world.level.Level level) static NPCPreset
fromJson
(@NotNull com.google.gson.JsonElement json) static NPCPreset
net.minecraft.resources.ResourceLocation
key()
void
saveToFile
(File file) com.google.gson.JsonElement
toJson()
-
Field Details
-
CODEC
-
NETWORK_CODEC
-
-
Method Details
-
key
public net.minecraft.resources.ResourceLocation key() -
createNPC
-
createBuilder
-
apply
-
toJson
public com.google.gson.JsonElement toJson() -
saveToFile
- Throws:
IOException
-
fromNPC
-
fromJson
-
builder
-