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
FieldsModifier and TypeFieldDescriptionprotected floatprotected Set<net.minecraft.world.entity.EntityType<?>>Fields inherited from class com.pixelmonmod.pixelmon.api.replacement.detection.AbstractDetectionLogic
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidread(com.google.gson.Gson context, com.google.gson.JsonElement element) Reads the data required from the datapack JSONbooleanshouldReplaceSpawn(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:SpawnDetectionLogicChecks 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:SpawnDetectionLogicReads the data required from the datapack JSON- Parameters:
context- The gsonelement- The json element of the file
-