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