Package net.minecraft.server.management

Examples of net.minecraft.server.management.PlayerInstance.forceUpdate()


      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();
          }
        }
      }
      sendChat(commandSender, "Refreshed " + count + " chunks");
      return;
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.