queueOperation

public static void queueOperation(Player player, Supplier<Boolean> asyncOperation, Runnable syncOperation, String operationName)

Queues a world operation for execution.

Parameters

player

The player initiating the operation (for feedback)

asyncOperation

The async operation (e.g., file cloning) - runs off main thread

syncOperation

The sync operation (e.g., world loading) - runs on main thread after async completes

operationName

Human-readable name for feedback messages


public static void queueOperation(Player player, Supplier<Boolean> asyncOperation, Runnable syncOperation, String operationName, Runnable terminalCallback)

Queues a world operation. Once accepted into the queue, terminalCallback is invoked exactly once on success, failure, or shutdown cancellation.