Exemplo n.º 1
0
  public IChatBaseComponent C() {
    ChatComponentText chatcomponenttext = new ChatComponentText(this.getName());

    if (this.hasName()) {
      chatcomponenttext.getChatModifier().setItalic(Boolean.valueOf(true));
    }

    IChatBaseComponent ichatbasecomponent =
        (new ChatComponentText("[")).addSibling(chatcomponenttext).a("]");

    if (this.item != null) {
      NBTTagCompound nbttagcompound = new NBTTagCompound();

      this.save(nbttagcompound);
      ichatbasecomponent
          .getChatModifier()
          .setChatHoverable(
              new ChatHoverable(
                  EnumHoverAction.SHOW_ITEM, new ChatComponentText(nbttagcompound.toString())));
      ichatbasecomponent.getChatModifier().setColor(this.u().e);
    }

    return ichatbasecomponent;
  }
Exemplo n.º 2
0
 public void sendMessage(IChatBaseComponent ichatbasecomponent) {
   MinecraftServer.LOGGER.info(ichatbasecomponent.c());
 }
Exemplo n.º 3
0
 public void a(IChatBaseComponent ichatbasecomponent) {
   c.info(this.getName() + " lost connection: " + ichatbasecomponent.c());
 }
Exemplo n.º 4
0
 public void sendMessage(IChatBaseComponent ichatbasecomponent) {
   i.info(ichatbasecomponent.c());
 }