Class NametagTimerChecker

java.lang.Object
me.lokka30.levelledmobs.misc.NametagTimerChecker

public class NametagTimerChecker extends Object
Used to mobs have a nametag cooldown timer where the nametag stays always visible for a configurable amount of time
Since:
3.2.0
  • Field Details

    • cooldownTimes

      public final WeakHashMap<org.bukkit.entity.LivingEntity,Long> cooldownTimes
    • entityTargetMap

      public final WeakHashMap<org.bukkit.entity.LivingEntity,org.bukkit.entity.Player> entityTargetMap
    • nametagTimer_Lock

      public static final Object nametagTimer_Lock
    • entityTarget_Lock

      public static final Object entityTarget_Lock
  • Constructor Details

    • NametagTimerChecker

      public NametagTimerChecker(LevelledMobs main)
  • Method Details

    • addPlayerToQueue

      public void addPlayerToQueue(@NotNull @NotNull PlayerQueueItem item)
    • getNametagCooldownQueue

      public Map<org.bukkit.entity.Player,WeakHashMap<org.bukkit.entity.LivingEntity,Instant>> getNametagCooldownQueue()
    • checkNametags

      public void checkNametags()