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

Method getHoverEvent

src/main/java/net/minecraft/entity/Entity.java:2714–2727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2712 }
2713
2714 protected HoverEvent getHoverEvent()
2715 {
2716 NBTTagCompound nbttagcompound = new NBTTagCompound();
2717 String s = EntityList.getEntityString(this);
2718 nbttagcompound.setString("id", this.getUniqueID().toString());
2719
2720 if (s != null)
2721 {
2722 nbttagcompound.setString("type", s);
2723 }
2724
2725 nbttagcompound.setString("name", this.getCommandSenderName());
2726 return new HoverEvent(HoverEvent.Action.SHOW_ENTITY, new ChatComponentText(nbttagcompound.toString()));
2727 }
2728
2729 public boolean isSpectatedByPlayer(EntityPlayerMP player)
2730 {

Callers 4

getDisplayNameMethod · 0.95
getDisplayNameMethod · 0.80
getDisplayNameMethod · 0.80
getDisplayNameMethod · 0.80

Calls 6

getEntityStringMethod · 0.95
setStringMethod · 0.95
getUniqueIDMethod · 0.95
getCommandSenderNameMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected