Class PartialDetectionLogic

java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.detection.AbstractDetectionLogic
com.pixelmonmod.pixelmon.api.replacement.detection.PartialDetectionLogic
All Implemented Interfaces:
SpawnDetectionLogic

public class PartialDetectionLogic extends AbstractDetectionLogic
  • Field Details

    • types

      protected Set<net.minecraft.world.entity.EntityType<?>> types
    • chance

      protected float chance
  • Constructor Details

    • PartialDetectionLogic

      public PartialDetectionLogic()
    • PartialDetectionLogic

      public PartialDetectionLogic(String id)
  • 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 gson
      element - The json element of the file