public class TrainerReplacementLogic extends AbstractReplacementLogic
id
Constructor and Description |
---|
TrainerReplacementLogic() |
Modifier and Type | Method and Description |
---|---|
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
|
getId
public void replaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
SpawnReplacementLogic
event
- The spawn eventpublic void read(com.google.gson.Gson context, com.google.gson.JsonElement element)
SpawnReplacementLogic
context
- The gsonelement
- The json element of the file