Beispiel #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;
  }
 public void sendMessage(IChatBaseComponent ichatbasecomponent) {
   MinecraftServer.LOGGER.info(ichatbasecomponent.c());
 }
Beispiel #3
0
 public void a(IChatBaseComponent ichatbasecomponent) {
   c.info(this.getName() + " lost connection: " + ichatbasecomponent.c());
 }
Beispiel #4
0
 public void sendMessage(IChatBaseComponent ichatbasecomponent) {
   i.info(ichatbasecomponent.c());
 }