Class SimpleDetectionLogic

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

public class SimpleDetectionLogic extends AbstractDetectionLogic
  • Field Details

    • types

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

    • SimpleDetectionLogic

      public SimpleDetectionLogic()
    • SimpleDetectionLogic

      public SimpleDetectionLogic(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