Class DynamicCommand

java.lang.Object
dev.ua.theroer.magicutils.commands.MagicCommand
dev.ua.theroer.magicutils.commands.DynamicCommand

public final class DynamicCommand extends MagicCommand
Concrete MagicCommand implementation backed by a CommandSpec.
  • Constructor Details

    • DynamicCommand

      public DynamicCommand(CommandSpec<?> spec)
      Creates a dynamic command from a command spec.
      Parameters:
      spec - command specification
  • Method Details

    • spec

      public CommandSpec<?> spec()
      Returns the backing command spec.
      Returns:
      command spec