Interface NameTagIconRenderEvent

All Superinterfaces:
ClientEvent, Event

public interface NameTagIconRenderEvent extends ClientEvent
This event is emitted when an icon is getting rendered.
This event should not be used to do any actual rendering. Just use this event to cancel the rendering of the icon.
Warning: Don't do heavy operations in this event, as it will block the render thread!

Note: Don't keep references to this event. It will be reused for every icon render to avoid allocations.

Use VoicechatClientApi.isTalking(UUID), VoicechatClientApi.isWhispering(UUID), VoicechatClientApi.isDisabled(UUID) and VoicechatClientApi.isDisconnected(UUID) to get the status of the player and render it using your mod loaders render event system.
  • Method Details

    • getEntityId

      UUID getEntityId()
      Returns:
      the UUID of the entity the icon is being rendered for