public interface SpawnReplacementLogic
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
The ID to be used for identification in the datapacks
|
void |
read(com.google.gson.Gson context,
com.google.gson.JsonElement element)
Reads the data required from the datapack JSON
|
void |
replaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
Handles replacing the spawn
|
java.lang.String getId()
void replaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
event
- The spawn eventvoid read(com.google.gson.Gson context, com.google.gson.JsonElement element)
context
- The gsonelement
- The json element of the file