()
| 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 | { |
no test coverage detected