Interface SpigotCommand<Msg>
- Type Parameters:
Msg- the type of messages the command can produce
- All Superinterfaces:
Command<SpigotCommandContext, Msg>
- All Known Implementing Classes:
SendMessageCommand
A command that can be executed in a Spigot GUI context.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Command
Command.PureCommand<Ctx,Msg> -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <Msg> SpigotCommand<Msg> close()A command that closes the inventory.static <Msg> SpigotCommand<Msg> of(Consumer<SpigotCommandContext> command) Wrap a simple consumer into a SpigotCommand.
-
Method Details
-
of
Wrap a simple consumer into a SpigotCommand.Note: Prefer creating specific commands where possible.
- Type Parameters:
Msg- the type of messages the command can produce- Parameters:
command- the command to wrap- Returns:
- the wrapped command
-
close
A command that closes the inventory.- Type Parameters:
Msg- the type of messages the command can produce- Returns:
- the close command
-