IWorldChunks
Package: com.hypixel.hytale.server.core.universe.world
@Deprecatedpublic interface IWorldChunks extends IChunkAccessorSync<WorldChunk>, IWorldChunksAsyncDeprecated synchronous chunk access interface. Provides blocking getChunk and getNonTickingChunk methods that attempt to load from memory first, then fall back to async loading with a spin-wait that processes task queues while holding the asset lock.
Methods
Section titled “Methods”| Method | Return Type | Description |
|---|---|---|
consumeTaskQueue() | void | Processes pending tasks in the world thread queue. Deprecated. |
isInThread() | boolean | Returns whether the caller is on the world thread. |
getChunk(long) | WorldChunk | Synchronously retrieves a ticking chunk by coordinate index. Blocks if not in memory. |
getNonTickingChunk(long) | WorldChunk | Synchronously retrieves a non-ticking chunk by coordinate index. Blocks if not in memory. |
waitForFutureWithoutLock(CompletableFuture<T>) | T | Waits for a future, processing task queues if on the world thread to avoid deadlock. |
See Also
Section titled “See Also”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.