Class SimpleReplacementLogic
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.logic.AbstractReplacementLogic
com.pixelmonmod.pixelmon.api.replacement.logic.SimpleReplacementLogic
- All Implemented Interfaces:
SpawnReplacementLogic
- Direct Known Subclasses:
BeeReplacementLogic
A simple list used where every element has equal weight
-
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
-
Field Details
-
replacements
-
-
Constructor Details
-
SimpleReplacementLogic
public SimpleReplacementLogic() -
SimpleReplacementLogic
-
-
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
-