Skip to content

IWorldChunks

Package: com.hypixel.hytale.server.core.universe.world

@Deprecated
public interface IWorldChunks extends IChunkAccessorSync<WorldChunk>, IWorldChunksAsync

Deprecated 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.

MethodReturn TypeDescription
consumeTaskQueue()voidProcesses pending tasks in the world thread queue. Deprecated.
isInThread()booleanReturns whether the caller is on the world thread.
getChunk(long)WorldChunkSynchronously retrieves a ticking chunk by coordinate index. Blocks if not in memory.
getNonTickingChunk(long)WorldChunkSynchronously retrieves a non-ticking chunk by coordinate index. Blocks if not in memory.
waitForFutureWithoutLock(CompletableFuture<T>)TWaits for a future, processing task queues if on the world thread to avoid deadlock.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.