public class SimpleReplacementLogic extends AbstractReplacementLogic
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PokemonSpecification> |
replacements |
id
Constructor and Description |
---|
SimpleReplacementLogic() |
SimpleReplacementLogic(java.lang.String id) |
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
protected java.util.List<PokemonSpecification> replacements
public SimpleReplacementLogic()
public SimpleReplacementLogic(java.lang.String id)
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