Interface WorldWorkerManager.IWorker

All Known Implementing Classes:
ChunkGenWorker
Enclosing class:
WorldWorkerManager

public static interface WorldWorkerManager.IWorker
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    Perform a task, returning true from this will have the manager call this function again this tick if there is time left.
    boolean
     
  • Method Details Link icon

    • hasWork Link icon

      boolean hasWork()
    • doWork Link icon

      boolean doWork()
      Perform a task, returning true from this will have the manager call this function again this tick if there is time left. Returning false will skip calling this worker until next tick.