Examples of addChatMessage()


Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

        // left Click
        if (event.action.equals(PlayerInteractEvent.Action.LEFT_CLICK_BLOCK))
        {
            PlayerInfo.selectionProvider.setPoint1((EntityPlayerMP) event.entityPlayer, point);
            IChatComponent format = OutputHandler.createFromText("Pos1 set to " + event.x + ", " + event.y + ", " + event.z);
            player.addChatMessage(OutputHandler.colourize(format, EnumChatFormatting.DARK_PURPLE));
            event.setCanceled(true);
        }
        // right Click
        else if (event.action.equals(PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK))
        {
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

        // right Click
        else if (event.action.equals(PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK))
        {
            PlayerInfo.selectionProvider.setPoint2((EntityPlayerMP) event.entityPlayer, point);
            IChatComponent format = OutputHandler.createFromText("Pos2 set to " + event.x + ", " + event.y + ", " + event.z);
            player.addChatMessage(OutputHandler.colourize(format, EnumChatFormatting.DARK_PURPLE));
            event.setCanceled(true);
        }
    }
   
}
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

    }

    if (messages.size() > 0) {
      String message;
      while ((message = messages.poll()) != null) {
        player.addChatMessage(new ChatComponentText(message));
      }
    }

    /*
     if (!Config.disableNags)
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

  @SuppressWarnings("rawtypes")
  public static void broadcastMessage(World world, String message) {
    for (Iterator iterator = world.playerEntities.iterator(); iterator.hasNext();) {
      EntityPlayer entityplayer = (EntityPlayer) iterator.next();
      entityplayer.addChatMessage(new ChatComponentText(message));
    }
  }

  public static IInventory getChest(IInventory inventory) {
    if (!(inventory instanceof TileEntityChest))
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

    EntityPlayer player = evt.player;

    // if(!Config.disableVersionCheck) {

    if (Version.needsUpdateNoticeAndMarkAsSeen()) {
      player.addChatMessage(new ChatComponentTranslation("bc_update.new_version",
              Version.getRecommendedVersion(),
              CoreProxy.proxy.getMinecraftVersion()));
      player.addChatMessage(new ChatComponentTranslation("bc_update.download"));

      // TODO: This takes too much realstate. See how to improve
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

    if (Version.needsUpdateNoticeAndMarkAsSeen()) {
      player.addChatMessage(new ChatComponentTranslation("bc_update.new_version",
              Version.getRecommendedVersion(),
              CoreProxy.proxy.getMinecraftVersion()));
      player.addChatMessage(new ChatComponentTranslation("bc_update.download"));

      // TODO: This takes too much realstate. See how to improve
      // Version.displayChangelog(player);

      player.addChatMessage(new ChatComponentTranslation("bc_update.once"));
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

      player.addChatMessage(new ChatComponentTranslation("bc_update.download"));

      // TODO: This takes too much realstate. See how to improve
      // Version.displayChangelog(player);

      player.addChatMessage(new ChatComponentTranslation("bc_update.once"));
      player.addChatMessage(new ChatComponentTranslation("bc_update.again"));
    }

    // }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addChatMessage()

      // TODO: This takes too much realstate. See how to improve
      // Version.displayChangelog(player);

      player.addChatMessage(new ChatComponentTranslation("bc_update.once"));
      player.addChatMessage(new ChatComponentTranslation("bc_update.again"));
    }

    // }

    nagged = true;
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP.addChatMessage()

                counter -= ConfigurationBackpack.MAX_BACKPACK_AMOUNT;
                if(counter > 0) {
                    IChatComponent message = new ChatComponentText("[Backpacks] ");
                    message.appendSibling(new ChatComponentTranslation(Localizations.MESSAGE_ALLOWED_BACKPACKS, ConfigurationBackpack.MAX_BACKPACK_AMOUNT));
                    player.addChatMessage(message);
                    message = new ChatComponentText("[Backpacks] ").appendSibling(new ChatComponentTranslation(Localizations.MESSAGE_DROPPED_BACKPACKS, counter));
                    player.addChatMessage(message);
                }
            }
        }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP.addChatMessage()

                if(counter > 0) {
                    IChatComponent message = new ChatComponentText("[Backpacks] ");
                    message.appendSibling(new ChatComponentTranslation(Localizations.MESSAGE_ALLOWED_BACKPACKS, ConfigurationBackpack.MAX_BACKPACK_AMOUNT));
                    player.addChatMessage(message);
                    message = new ChatComponentText("[Backpacks] ").appendSibling(new ChatComponentTranslation(Localizations.MESSAGE_DROPPED_BACKPACKS, counter));
                    player.addChatMessage(message);
                }
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.