public interface SpawnDetectionLogic
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
|
boolean |
shouldReplaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
Checks if the spawn should be replaced
|
java.lang.String getId()
boolean shouldReplaceSpawn(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