Package net.minecraft.server.management

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


    int currentTick = MinecraftServer.currentTick;
    ArrayList<PlayerInstance> postponed = new ArrayList<PlayerInstance>();
    PlayerInstance playerInstance;
    while ((playerInstance = chunkWatcherWithPlayersQ.poll()) != null) {
      try {
        if (playerInstance.shouldPostPone(currentTick++ % 600 == 0, currentTick)) {
          postponed.add(playerInstance);
        } else {
          playerInstance.sendChunkUpdate();
        }
      } catch (Exception e) {
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.