Class PlayerEvent.NameFormat

  • Enclosing class:
    PlayerEvent

    public static class PlayerEvent.NameFormat
    extends PlayerEvent
    NameFormat is fired when a player's display name is retrieved.
    This event is fired whenever a player's name is retrieved in EntityPlayer#getDisplayName() or EntityPlayer#refreshDisplayName().

    This event is fired via the ForgeEventFactory#getPlayerDisplayName(EntityPlayer, String).

    username contains the username of the player. displayname contains the display name of the player.
    This event is not Cancelable.
    This event does not have a result. Event.HasResult
    This event is fired on the MinecraftForge.EVENT_BUS.