Package net.minecraft.src

Examples of net.minecraft.src.EntityPlayerMP


         } catch (Throwable t) {
            t.printStackTrace();
            throw new CommandException("End portal generation is currently unsupported.");
         }
      } else if (portalType.equalsIgnoreCase("nether")) {
         EntityPlayerMP playerEntity;
         if(player.getMinecraftPlayer() instanceof EntityPlayerMP) {
            playerEntity = (EntityPlayerMP)player.getMinecraftPlayer();
         } else {
            throw new CommandException("SPC should *NOT* be processing commands client-side!");
         }
         (new Teleporter(playerEntity.getServerForPlayer())).makePortal(playerEntity);
      } else {
         throw new CommandException("Invalid portal type specified.");
      }
   }
View Full Code Here


   public void execute(CommandSender sender, List<?> params) throws CommandException {
      Player player = getSenderAsPlayer(sender);
      if(!(player.getMinecraftPlayer() instanceof EntityPlayerMP)) {
         throw new CommandException("Command must be executed by non-client player.");
      }
      EntityPlayerMP playerEntity = (EntityPlayerMP)player.getMinecraftPlayer();
      if(params.size() == 0) {
         sender.sendMessageToPlayer("Current block reach distance: " +
            ForgeHelper.getBlockReachDistance(playerEntity.theItemInWorldManager));
      } else {
         double newReach = (Double)params.get(0);
View Full Code Here

   public int killMobsDo(Vector pos, double radius, boolean withLightning, boolean killAnimals, boolean killNPCs, boolean killPets) {
      List<Entity> entities = this.world.getMinecraftWorld().getEntitiesWithinAABBExcludingEntity(null,
         AxisAlignedBB.getBoundingBox(pos.getX() - (double)radius, pos.getY() - (double)radius, pos.getZ() - (double)radius,
         pos.getX() + (double)radius, pos.getY() + (double)radius, pos.getZ() + (double)radius));
      int count = 0;
      EntityPlayerMP owner;
      try {
         String firstPlayer = MinecraftServer.getServer().getServerOwner();
         owner = MinecraftServer.getServer().getConfigurationManager().getPlayerForUsername(firstPlayer);
      } catch (Exception e) {
         owner = null;
View Full Code Here

               for(String part : args) {
                  cmd += " " + part;
               }
               cmd = cmd.trim();
               System.out.println("SPC/CommandBlock: " + cmd);
               EntityPlayerMP player;
               try {
                  player = func_82359_c(sender, args[0]);
               } catch (net.minecraft.src.PlayerNotFoundException pnfe) {
                  System.out.println("SPC/CommandBlock: Warning - " + getCommandName() + " is a player command.");
                  throw pnfe;
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityPlayerMP

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.