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 Link icon

    • Worker Link icon

      public Worker()
  • Method Details Link icon

    • enqueue Link icon

      public void enqueue(Task task)
    • execute Link icon

      public void execute(Renderer renderer)
    • getExecutionTime Link icon

      public long getExecutionTime()
    • setExecutionTime Link icon

      public void setExecutionTime(long executionTime)
    • setPlayerCoords Link icon

      public void setPlayerCoords(int playerX, int playerZ)