EntityTargetListener

class EntityTargetListener : Listener

Used as a workaround to ensure mob nametags are properly updated

Author

stumper66

Since

2.4.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun onTarget(event: EntityTargetEvent)

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.