MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getDisplayName

Method getDisplayName

src/main/java/net/minecraft/entity/Entity.java:2653–2659  ·  view source on GitHub ↗

Get the formatted ChatComponent that will be used for the sender's username in chat

()

Source from the content-addressed store, hash-verified

2651 * Get the formatted ChatComponent that will be used for the sender's username in chat
2652 */
2653 public IChatComponent getDisplayName()
2654 {
2655 ChatComponentText chatcomponenttext = new ChatComponentText(this.getCommandSenderName());
2656 chatcomponenttext.getChatStyle().setChatHoverEvent(this.getHoverEvent());
2657 chatcomponenttext.getChatStyle().setInsertion(this.getUniqueID().toString());
2658 return chatcomponenttext;
2659 }
2660
2661 /**
2662 * Sets the custom name tag for this entity

Callers 3

processCommandMethod · 0.95
processCommandMethod · 0.95
onPacketMethod · 0.95

Calls 7

getCommandSenderNameMethod · 0.95
getHoverEventMethod · 0.95
getUniqueIDMethod · 0.95
setChatHoverEventMethod · 0.80
setInsertionMethod · 0.80
getChatStyleMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected