Class VillagerReplacementLogic
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.logic.AbstractReplacementLogic
com.pixelmonmod.pixelmon.api.replacement.logic.VillagerReplacementLogic
- All Implemented Interfaces:
SpawnReplacementLogic
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.replacement.logic.AbstractReplacementLogic
id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
read
(com.google.gson.Gson context, com.google.gson.JsonElement element) Reads the data required from the datapack JSONvoid
replaceSpawn
(net.minecraftforge.event.entity.EntityJoinLevelEvent event) Handles replacing the spawnMethods inherited from class com.pixelmonmod.pixelmon.api.replacement.logic.AbstractReplacementLogic
getId
-
Constructor Details
-
VillagerReplacementLogic
public VillagerReplacementLogic()
-
-
Method Details
-
replaceSpawn
public void replaceSpawn(net.minecraftforge.event.entity.EntityJoinLevelEvent event) Description copied from interface:SpawnReplacementLogic
Handles replacing the spawn- Parameters:
event
- The spawn event
-
read
public void read(com.google.gson.Gson context, com.google.gson.JsonElement element) Description copied from interface:SpawnReplacementLogic
Reads the data required from the datapack JSON- Parameters:
context
- The gsonelement
- The json element of the file
-