Class MobRemovalTimerTask

java.lang.Object
com.palmergames.bukkit.towny.tasks.TownyTimerTask
com.palmergames.bukkit.towny.tasks.MobRemovalTimerTask
All Implemented Interfaces:
Runnable

public class MobRemovalTimerTask extends TownyTimerTask
  • Field Details Link icon

    • classesOfWorldMobsToRemove Link icon

      public static List<Class<?>> classesOfWorldMobsToRemove
    • classesOfWildernessMobsToRemove Link icon

      public static List<Class<?>> classesOfWildernessMobsToRemove
    • classesOfTownMobsToRemove Link icon

      public static List<Class<?>> classesOfTownMobsToRemove
  • Constructor Details Link icon

    • MobRemovalTimerTask Link icon

      public MobRemovalTimerTask(Towny plugin)
  • Method Details Link icon

    • isRemovingWorldEntity Link icon

      public static boolean isRemovingWorldEntity(org.bukkit.entity.LivingEntity livingEntity)
    • isRemovingWildernessEntity Link icon

      public static boolean isRemovingWildernessEntity(org.bukkit.entity.LivingEntity livingEntity)
    • isRemovingTownEntity Link icon

      public static boolean isRemovingTownEntity(org.bukkit.entity.LivingEntity livingEntity)
    • isSpawnReasonIgnored Link icon

      public static boolean isSpawnReasonIgnored(@NotNull @NotNull org.bukkit.entity.Entity entity)
    • isSpawnReasonIgnored Link icon

      public static boolean isSpawnReasonIgnored(@NotNull @NotNull org.bukkit.entity.Entity entity, @Nullable org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason)
    • run Link icon

      public void run()
    • isRemovingEntities Link icon

      public static boolean isRemovingEntities(@Nullable @Nullable TownyWorld world)
      Parameters:
      world - The world to check
      Returns:
      Whether entities have a chance of being removed in this world
    • checkEntity Link icon

      public static void checkEntity(@NotNull @NotNull Towny plugin, @NotNull @NotNull TownyWorld townyWorld, @NotNull @NotNull org.bukkit.entity.Entity ent)
      Checks and removes entities if necessary. Can be called from any thread.
      Parameters:
      plugin - Towny's plugin instance
      townyWorld - The world the entity is in
      ent - The entity to check