Class AbstractAsyncWorldCommand

Direct Known Subclasses:
CancelCommand.CancelAssetCommand, CancelCommand.CancelUuidCommand, ListCommand, ResetCommand, StartCommand.StartAssetCommand, WorldGenReloadCommand, WorldRocksDbCommand.CompactCommand

public abstract class AbstractAsyncWorldCommand extends AbstractAsyncCommand
An asynchronous command base for commands that require world data.

World commands are executed via the world thread, ensuring thread safety when interacting with world resources.

  • Constructor Details

    • AbstractAsyncWorldCommand

      public AbstractAsyncWorldCommand(@Nonnull String name, @Nonnull String description)
      Constructor for a AbstractAsyncWorldCommand instance
      Parameters:
      name - The name of the command
      description - The description of the command
    • AbstractAsyncWorldCommand

      public AbstractAsyncWorldCommand(@Nonnull String name, @Nonnull String description, boolean requiresConfirmation)
      Constructor for a AbstractAsyncWorldCommand instance
      Parameters:
      name - The name of the command
      description - The description of the command
      requiresConfirmation - Determines whether a confirmation parameter is required to execute
    • AbstractAsyncWorldCommand

      public AbstractAsyncWorldCommand(@Nonnull String description)
      Variant Constructor for a AbstractAsyncWorldCommand instance
      Parameters:
      description - The description of the command