public class SpawnReplacementRegistry
extends java.lang.Object
Constructor and Description |
---|
SpawnReplacementRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
handleEvent(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
Handles the spawn event
|
static void |
register(com.google.gson.Gson gson,
net.minecraft.util.ResourceLocation rl,
com.google.gson.JsonElement json)
Register a custom spawn handler from a JSON object
|
static void |
register(SpawnReplacement replacement)
Registers a spawn replacement
|
static void |
reset()
Resets the replacement registry
|
public static void register(com.google.gson.Gson gson, net.minecraft.util.ResourceLocation rl, com.google.gson.JsonElement json)
gson
- The GSON parserrl
- The location of the JSON filejson
- The JSON from the filepublic static void register(SpawnReplacement replacement)
replacement
- The created replacementpublic static void reset()
public static void handleEvent(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
event
- The event