Examples of addChatMessage()


Examples of net.minecraft.client.entity.EntityClientPlayerMP.addChatMessage()

            return;
        }
        for (ClickableModule module : boundModules) {
            String valstring = toggleval ? " on" : " off";
            if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
                player.addChatMessage(new ChatComponentText("Toggled " + module.getModule().getDataName() + valstring));
            }
            MuseItemUtils.toggleModuleForPlayer(player, module.getModule().getDataName(), toggleval);
            MusePacketToggleRequest toggleRequest = new MusePacketToggleRequest(player, module.getModule().getDataName(), toggleval);
            PacketSender.sendToServer(toggleRequest);
        }
View Full Code Here

Examples of net.minecraft.client.entity.EntityClientPlayerMP.addChatMessage()

  }
 
  public static void printBoth(String msg) {
    EntityClientPlayerMP thePlayer = Minecraft.getMinecraft().thePlayer;
    if (thePlayer != null) {
      thePlayer.addChatMessage(new ChatComponentText(msg));
    }
    MwUtil.log("%s", msg);
  }
 
  public static File getDimensionDir(File worldDir, int dimension) {
View Full Code Here

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

        }
        player.setHealth(1);
        player.attackEntityFrom(ModularForceFieldSystem.damagefieldShock, 100);
        interdictionMatrix.requestFortron(Settings.INTERDICTION_MURDER_ENERGY, false);

        player.addChatMessage("[" + interdictionMatrix.getInvName() + "] " + LanguageUtility.getLocal("message.moduleAntiPersonnel.death"));
      }
    }

    return false;
  }
View Full Code Here

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

            isGranted = true;
          }

          if (!isGranted && this.worldObj.rand.nextInt(3) == 0 && getModuleCount(ModularForceFieldSystem.itemModuleSilence) <= 0)
          {
            player.addChatMessage("[" + this.getInvName() + "] " + LanguageUtility.getLocal("message.interdictionMatrix.warn"));
          }

        }
      }
View Full Code Here

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

      if(amulet != null && amulet.getItem() == this) {
        event.setCanceled(true);
        player.setHealth(player.getMaxHealth());
        player.addPotionEffect(new PotionEffect(Potion.resistance.id, 300, 6));
        player.addChatMessage(new ChatComponentTranslation("botaniamisc.savedByLaurel"));
        player.worldObj.playSoundAtEntity(player, "botania:goldenLaurel", 1F, 0.3F);
        PlayerHandler.getPlayerBaubles(player).setInventorySlotContents(0, null);
      }
    }
  }
View Full Code Here

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

        if(Morph.config.getSessionInt("canSleepMorphed") == 0)
        {
            if(FMLCommonHandler.instance().getEffectiveSide().isServer() && Morph.proxy.tickHandlerServer.getPlayerMorphInfo(player) != null)
            {
                event.result = stats;
                player.addChatMessage(new ChatComponentTranslation("morph.denySleep"));
            }
            else if(FMLCommonHandler.instance().getEffectiveSide().isClient() && Morph.proxy.tickHandlerClient.playerMorphInfo.containsKey(player.getCommandSenderName()))
            {
                event.result = stats;
            }
View Full Code Here

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

  @SubscribeEvent
  public void onPlayerLogin(PlayerLoggedInEvent event) {

    EntityPlayer player = event.player;
    if (ServerHelper.isMultiPlayerServer() && CoFHProps.enableOpSecureAccess && CoFHProps.enableOpSecureAccessWarning) {
      player.addChatMessage(new ChatComponentText(StringHelper.YELLOW + "[CoFH] " + StringHelper.WHITE + StringHelper.localize("chat.cofh.secure.0")
          + StringHelper.END));
    }
    PacketCore.sendConfigSyncPacketToClient(event.player);
    handleIdMappingEvent(null);
  }
View Full Code Here

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

          return;
        }
        ModVersion newVersion = _updateThread.newVersion();

        EntityPlayer player = evt.player;
        player.addChatMessage(new ChatComponentText(GOLD + "[" + _mod.getModName() + "]").appendText(WHITE + " A new version is available:"));
        IChatComponent chat;
        String text = newVersion.modVersion().toString();
        if (Strings.isNullOrEmpty(_downloadUrl)) {
          chat = new ChatComponentText(text).setChatStyle(version);
        } else {
View Full Code Here

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

          chat = IChatComponent.Serializer.func_150699_a("[{\"text\":\"" + text + "\",\"color\":\"aqua\"}," + "{\"text\":\" " + WHITE + "[" + GREEN
              + "Download" + WHITE + "]\"," + "\"color\":\"green\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":"
              + "{\"text\":\"Click this to download the latest version\",\"color\":\"yellow\"}},"
              + "\"clickEvent\":{\"action\":\"open_url\",\"value\":\"" + _downloadUrl + "\"}}]");
        }
        player.addChatMessage(chat);
        player.addChatMessage(new ChatComponentText(newVersion.description()).setChatStyle(description));
      }
    }
  }
View Full Code Here

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

              + "Download" + WHITE + "]\"," + "\"color\":\"green\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":"
              + "{\"text\":\"Click this to download the latest version\",\"color\":\"yellow\"}},"
              + "\"clickEvent\":{\"action\":\"open_url\",\"value\":\"" + _downloadUrl + "\"}}]");
        }
        player.addChatMessage(chat);
        player.addChatMessage(new ChatComponentText(newVersion.description()).setChatStyle(description));
      }
    }
  }

}
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.