Class EntityTargetListener
java.lang.Object
me.lokka30.levelledmobs.listeners.EntityTargetListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Used as a workaround to ensure mob nametags are properly updated
- Since:
- 2.4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onTarget
(@NotNull org.bukkit.event.entity.EntityTargetEvent event) This event is listened to update the nametag of a mob when they start targeting a player.
-
Constructor Details
-
EntityTargetListener
-
-
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
-