public static class PlayerEvent.NameFormat extends PlayerEvent
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
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
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
public NameFormat(EntityPlayer player, java.lang.String username)