Class SimpleDetectionLogic
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.detection.AbstractDetectionLogic
com.pixelmonmod.pixelmon.api.replacement.detection.SimpleDetectionLogic
- All Implemented Interfaces:
SpawnDetectionLogic
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.replacement.detection.AbstractDetectionLogic
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 JSONboolean
shouldReplaceSpawn
(net.minecraftforge.event.entity.EntityJoinLevelEvent event) Checks if the spawn should be replacedMethods inherited from class com.pixelmonmod.pixelmon.api.replacement.detection.AbstractDetectionLogic
getId
-
Field Details
-
types
-
-
Constructor Details
-
SimpleDetectionLogic
public SimpleDetectionLogic() -
SimpleDetectionLogic
-
-
Method Details
-
shouldReplaceSpawn
public boolean shouldReplaceSpawn(net.minecraftforge.event.entity.EntityJoinLevelEvent event) Description copied from interface:SpawnDetectionLogic
Checks if the spawn should be replaced- Parameters:
event
- The spawn event
-
read
public void read(com.google.gson.Gson context, com.google.gson.JsonElement element) Description copied from interface:SpawnDetectionLogic
Reads the data required from the datapack JSON- Parameters:
context
- The gsonelement
- The json element of the file
-