Class Worker

java.lang.Object
com.ardorcraft.util.queue.Worker

public class Worker extends Object
The Worker handles the chunk update Tasks, making sure they are prioritized, and doesnt spend too much time per frame.
  • Constructor Details

    • Worker

      public Worker()
  • Method Details

    • enqueue

      public void enqueue(Task task)
    • execute

      public void execute(Renderer renderer)
    • getExecutionTime

      public long getExecutionTime()
    • setExecutionTime

      public void setExecutionTime(long executionTime)
    • setPlayerCoords

      public void setPlayerCoords(int playerX, int playerZ)