classpublicabstractPriority 3
AbstractOptionalArg
com.hypixel.hytale.server.core.command.system.arguments.system.AbstractOptionalArg
14
Methods
14
Public Methods
1
Fields
1
Constructors
Constructors
package-private
AbstractOptionalArg(AbstractCommand commandRegisteredTo, String name, String description, ArgumentType<DataType> argumentType)Methods
Public Methods (14)
publicfinal
Arg addAliases(String[] newAliases)public
Arg availableOnlyIfAll(AbstractOptionalArg<?, ?> dependent, AbstractOptionalArg<?, ?>[] otherDependents)public
Arg availableOnlyIfAll(AbstractOptionalArg<?, ?> dependent)public
Arg availableOnlyIfAllAbsent(AbstractOptionalArg<?, ?> dependent, AbstractOptionalArg<?, ?>[] otherDependents)public
Arg availableOnlyIfAllAbsent(AbstractOptionalArg<?, ?> dependent)public
Set<String> getAliases()@Nonnull
public
String getPermission()@Nullable
public
boolean hasPermission(CommandSender sender)public
Arg requiredIf(AbstractOptionalArg<?, ?> dependent, AbstractOptionalArg<?, ?>[] otherDependents)public
Arg requiredIf(AbstractOptionalArg<?, ?> dependent)public
Arg requiredIfAbsent(AbstractOptionalArg<?, ?> dependent, AbstractOptionalArg<?, ?>[] otherDependents)public
Arg requiredIfAbsent(AbstractOptionalArg<?, ?> dependent)public
Arg setPermission(String permission)@Nonnull
public
boolean verifyArgumentDependencies(CommandContext context, ParseResult parseResult)Fields
Private/Package Fields (1)
private
String permission