Class ListStructures
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.commands.BaseCommand
nl.pim16aap2.animatedarchitecture.core.commands.ListStructures
Represents a command to list a number of structures matching a single
StructureRetrieverFactory. This is
basically only useful for String-based look-ups (as there aren't duplicate matches otherwise), but I don't judge.-
Field Summary
Fields inherited from class BaseCommand
executor, localizer -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<?> executeCommand(PermissionsStatus permissions) Executes the command.Gets theCommandDefinitionthat contains the definition of thisBaseCommand.@NonNull StringtoString()Methods inherited from class BaseCommand
availableForNonPlayers, availableForPlayers, getCommandSender, getStructure, hasAccessToAttribute, hasPermission, run, runWithRawResult, runWithRawResult, sendGenericErrorMessage, startExecution, validateInput
-
Method Details
-
getCommand
Description copied from class:BaseCommandGets theCommandDefinitionthat contains the definition of thisBaseCommand.- Specified by:
getCommandin classBaseCommand- Returns:
- The
CommandDefinitionthat contains the definition of thisBaseCommand.
-
executeCommand
Description copied from class:BaseCommandExecutes the command. This method is only called ifBaseCommand.validateInput()andBaseCommand.hasPermission()are true.Note that this method is called asynchronously.
- Specified by:
executeCommandin classBaseCommand- Parameters:
permissions- Whether theICommandSenderhas user and/or admin permissions.- Returns:
- The future of the command execution.
-
toString
- Overrides:
toStringin classBaseCommand
-