Class PartialDetectionLogic
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.detection.AbstractDetectionLogic
com.pixelmonmod.pixelmon.api.replacement.detection.PartialDetectionLogic
- All Implemented Interfaces:
SpawnDetectionLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected Set<net.minecraft.world.entity.EntityType<?>>
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
-
chance
protected float chance
-
-
Constructor Details
-
PartialDetectionLogic
public PartialDetectionLogic() -
PartialDetectionLogic
-
-
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
-