Package net.minecraft.util

Examples of net.minecraft.util.ChatMessageComponent


            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
          } else if (card.getSettingsName(currentItem).equals(getUnlocalizedName() + ".name") || card.getSettingsName(currentItem).equals("AppEng.GuiITooltip.Blank"))
          {
            blockTE.readFromNBT(card.getData(currentItem));
            Packet description = blockTE.getDescriptionPacket();
            if (description != null)
              PacketDispatcher.sendPacketToAllPlayers(description);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsLoaded")));
            return true;
          } else
          {
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.IncorrectDevice")));
            return true;
          }
        }
      }
      if (world.getBlockTileEntity(x, y, z) == null || player.isSneaking())
View Full Code Here


            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
          } else if (card.getSettingsName(currentItem).equals(getUnlocalizedName() + ".name") || card.getSettingsName(currentItem).equals("AppEng.GuiITooltip.Blank"))
          {
            blockTE.readFromNBT(card.getData(currentItem));
            Packet description = blockTE.getDescriptionPacket();
            if (description != null)
              PacketDispatcher.sendPacketToAllPlayers(description);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsLoaded")));
            return true;
          } else
          {
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.IncorrectDevice")));
            return true;
          }
        }
      }
      if (world.getBlockTileEntity(x, y, z) == null || player.isSneaking())
View Full Code Here

            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
          } else if (card.getSettingsName(currentItem).equals(getUnlocalizedName() + ".name") || card.getSettingsName(currentItem).equals("AppEng.GuiITooltip.Blank"))
          {
            blockTE.readFromNBT(card.getData(currentItem));
            Packet description = blockTE.getDescriptionPacket();
            if (description != null)
              PacketDispatcher.sendPacketToAllPlayers(description);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsLoaded")));
            return true;
          } else
          {
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.IncorrectDevice")));
            return true;
          }
        }
      }
      if (world.getBlockTileEntity(x, y, z) == null || player.isSneaking())
View Full Code Here

        } else if (player.isSneaking())
        {
          if (!monitorTE.isLocked())
          {
            monitorTE.setLocked(true);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.Locked")));
          } else
          {
            monitorTE.setLocked(false);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.Unlocked")));
          }
        } else if (!player.isSneaking() && !monitorTE.isLocked())
        {
          monitorTE.setFluid(null);
        }
View Full Code Here

    try {
      for (Object aPlayerEntityList : MinecraftServer.getServer().getConfigurationManager().playerEntityList) {
        EntityPlayerMP var7 = (EntityPlayerMP) aPlayerEntityList;

        if (MinecraftServer.getServer().getConfigurationManager().isPlayerOpped(var7.username)) {
          var7.sendChatToPlayer(new ChatMessageComponent().addText(message));
        }
      }
    } finally {
      serverConfigurationManager.playerUpdateLock.unlock();
    }
View Full Code Here

        message = null;
      } else {
        sent = message.substring(0, nlIndex);
        message = message.substring(nlIndex + 1);
      }
      commandSender.sendChatToPlayer(new ChatMessageComponent().addText(sent));
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.util.ChatMessageComponent

Copyright © 2018 www.massapicom. 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.