Examples of WorldServer


Examples of net.minecraft.world.WorldServer

        entityPlayerMP = (EntityPlayerMP) commandSender;
      } catch (ClassCastException e) {
        sendChat(commandSender, "/ticks r can only be used in game.");
        return;
      }
      WorldServer worldServer = (WorldServer) entityPlayerMP.worldObj;
      int side = arguments.isEmpty() ? 2 : Integer.valueOf(arguments.get(0));
      int count = 0;
      for (int x = entityPlayerMP.chunkCoordX - side, eX = x + side + side; x < eX; x++) {
        for (int z = entityPlayerMP.chunkCoordZ - side, eZ = z + side + side; z < eZ; z++) {
          PlayerInstance playerInstance = worldServer.getPlayerManager().getOrCreateChunkWatcher(x, z, false);
          if (playerInstance != null) {
            count++;
            playerInstance.forceUpdate();
          }
        }
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.