public static class PlayerEvent.NameFormat extends PlayerEvent
EntityPlayer.getDisplayName()
or EntityPlayer.refreshDisplayName()
.ForgeEventFactory.getPlayerDisplayName(EntityPlayer, String)
.username
contains the username of the player.
displayname
contains the display name of the player.
Cancelable
.
HasResult
MinecraftForge.EVENT_BUS
.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
displayname |
private java.lang.String |
username |
Constructor and Description |
---|
NameFormat(EntityPlayer player,
java.lang.String username) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayname() |
java.lang.String |
getUsername() |
void |
setDisplayname(java.lang.String displayname) |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final java.lang.String username
private java.lang.String displayname
public NameFormat(EntityPlayer player, java.lang.String username)