Class EntityTargetListener

java.lang.Object
me.lokka30.levelledmobs.listeners.EntityTargetListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class EntityTargetListener extends Object implements org.bukkit.event.Listener
Used as a workaround to ensure mob nametags are properly updated
Since:
2.4.0
  • Constructor Details

    • EntityTargetListener

      public EntityTargetListener(LevelledMobs main)
  • Method Details

    • onTarget

      public void onTarget(@NotNull @NotNull org.bukkit.event.entity.EntityTargetEvent event)
      This event is listened to update the nametag of a mob when they start targeting a player. Should provide another band-aid for packets not appearing sometimes for mob nametags.
      Parameters:
      event - EntityTargetEvent