Examples of EntityPlayerMP


Examples of net.minecraft.entity.player.EntityPlayerMP

    }

    @Override
    public void onTeleport(EntityPlayerMP player)
    {
        final EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);

        if (playerBase != null)
        {
            GCPlayerStats stats = GCPlayerStats.get(player);
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP

    }

    @Override
    public void handleServerSide(EntityPlayer player)
    {
        EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);

        switch (this.type)
        {
        case S_UPDATE_ADVANCED_GUI:
            TileEntity tile = player.worldObj.getTileEntity((Integer) this.data.get(1), (Integer) this.data.get(2), (Integer) this.data.get(3));
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP

        {
            world.setBlockToAir(x0, y0, z0);

            if (!world.isRemote && entity instanceof EntityPlayerMP)
            {
                EntityPlayerMP player = (EntityPlayerMP) entity;
                player.addChatMessage(new ChatComponentText(EnumColor.RED + GCCoreUtil.translate("gui.warning.noroom")));
                ItemStack itemstack = new ItemStack(this, 1, 0);
                EntityItem entityitem = player.dropPlayerItemWithRandomChoice(itemstack, false);
                entityitem.delayBeforeCanPickup = 0;
                entityitem.func_145797_a(player.getCommandSenderName());
            }

            return;
        }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP

                return getPlayerForUsernameVanilla(server, username);
            }
            else
            {
                Iterator iterator = server.getConfigurationManager().playerEntityList.iterator();
                EntityPlayerMP entityplayermp;

                do
                {
                    if (!iterator.hasNext())
                    {
                        return null;
                    }

                    entityplayermp = (EntityPlayerMP) iterator.next();
                }
                while (!entityplayermp.getCommandSenderName().equalsIgnoreCase(username));

                return entityplayermp;
            }
        }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP

    {
        if (this.player instanceof EntityPlayerMP)
        {
            for (int var12 = 0; var12 < this.player.worldObj.playerEntities.size(); ++var12)
            {
                final EntityPlayerMP var13 = (EntityPlayerMP) this.player.worldObj.playerEntities.get(var12);

                if (var13.dimension == this.player.worldObj.provider.dimensionId)
                {
                    final double var14 = this.x - var13.posX;
                    final double var16 = this.y - var13.posY;
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP

   
   
    @Override
    public void handleCommand(String command, String playername, String[] args, WCommandSender listener)
    {
        EntityPlayerMP player = (EntityPlayerMP)listener.wrapped;
        handleCommand(getWorld(player), player, args);
    }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP

        //Not launch controlled
        if (this.riddenByEntity != null && !this.worldObj.isRemote)
        {
            if (this.riddenByEntity instanceof EntityPlayerMP)
            {
                EntityPlayerMP player = (EntityPlayerMP) this.riddenByEntity;

                this.onTeleport(player);
                GCPlayerStats stats = GCPlayerStats.get(player);
                WorldUtil.toCelestialSelection(player, stats, this.getRocketTier());
View Full Code Here

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

Examples of net.minecraft.src.EntityPlayerMP

   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

Examples of net.minecraft.src.EntityPlayerMP

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