Class MacroCommandBase
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
com.hypixel.hytale.builtin.commandmacro.MacroCommandBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<it.unimi.dsi.fastutil.Pair<String, List<MacroCommandReplacement>>> static final com.hypixel.hytale.logger.HytaleLoggerprivate static final PatternFields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionMacroCommandBase(String name, String[] aliases, String description, MacroCommandParameter[] parameters, String[] commands) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<Void> executeAsync(CommandContext context) private <D> Argument<?, ?> withDefaultArg(String name, String description, ArgumentType<D> argumentType, String defaultValue, String defaultValueDescription, ParseResult parseResult) Methods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
execute, runAsyncMethods inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
acceptCall, addAliases, addSubCommand, addUsageVariant, canGeneratePermission, completeRegistration, countParents, generatePermissionNode, getAliases, getDescription, getFullyQualifiedName, getName, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommands, getUsageShort, getUsageString, hasBeenRegistered, hasPermission, isVariant, matches, putRecursivePermissionGroups, requirePermission, setAllowsExtraArguments, setOwner, setPermissionGroup, setPermissionGroups, setUnavailableInSingleplayer, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Field Details
-
LOGGER
public static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
regexBracketPattern
-
arguments
-
commandReplacements
private final List<it.unimi.dsi.fastutil.Pair<String,List<MacroCommandReplacement>>> commandReplacements -
defaultValueStrings
-
-
Constructor Details
-
MacroCommandBase
public MacroCommandBase(@Nonnull String name, @Nullable String[] aliases, @Nonnull String description, @Nullable MacroCommandParameter[] parameters, @Nonnull String[] commands)
-
-
Method Details
-
withDefaultArg
@Nullable private <D> Argument<?,?> withDefaultArg(String name, String description, @Nonnull ArgumentType<D> argumentType, @Nonnull String defaultValue, String defaultValueDescription, @Nonnull ParseResult parseResult) -
executeAsync
- Specified by:
executeAsyncin classAbstractAsyncCommand
-