Skip navigation links
A B C E G H I L M N R S T 

A

AbstractCommandManager<S> - Class in com.mrivanplays.commandworker.core
Represents abstracted command manager.
AbstractCommandManager() - Constructor for class com.mrivanplays.commandworker.core.AbstractCommandManager
 
aliasesFree(List<RegisteredCommand<S>>, String[]) - Method in interface com.mrivanplays.commandworker.core.CommandManager
Returns whenever the aliases are free in the specified command list.
Argument - Interface in com.mrivanplays.commandworker.core.argument
Represents wrapped argument, which would get wrapped in a brigadier one later when command is being registered.
argument(String, ArgumentType<T>) - Static method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
Creates a new RequiredArgument
argument(Argument) - Method in class com.mrivanplays.commandworker.core.LiteralNode
Adds argument to the base sub commands.
ArgumentData - Class in com.mrivanplays.commandworker.core.argument.parser
Represents argument data.
ArgumentHolder - Class in com.mrivanplays.commandworker.core.argument.parser
Represents a holder of arguments.
ArgumentHolder(String, LiteralNode) - Constructor for class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
 

B

buildUsage() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
 
buildUsage(String) - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
 
buildUsage() - Method in class com.mrivanplays.commandworker.core.LiteralNode
Builds the argument usage.
buildUsage(String) - Method in class com.mrivanplays.commandworker.core.LiteralNode
Builds full command usage for the alias specified

C

com.mrivanplays.commandworker.core - package com.mrivanplays.commandworker.core
 
com.mrivanplays.commandworker.core.argument - package com.mrivanplays.commandworker.core.argument
 
com.mrivanplays.commandworker.core.argument.parser - package com.mrivanplays.commandworker.core.argument.parser
 
Command<S> - Interface in com.mrivanplays.commandworker.core
Represents a command.
CommandManager<S> - Interface in com.mrivanplays.commandworker.core
Represents a manager of all the registered commands.
completeToStringList(String[]) - Method in class com.mrivanplays.commandworker.core.LiteralNode
Returns a unmodifiable string list, which converts brigadier's suggestions to string list suggestions based on the arguments specified.
createCommandStructure() - Method in interface com.mrivanplays.commandworker.core.Command
Creates the command structure for this command.

E

execute(S, String, ArgumentHolder) - Method in interface com.mrivanplays.commandworker.core.Command
Execute this command with the provided sender, label and arguments.

G

getAliases(String, String...) - Static method in interface com.mrivanplays.commandworker.core.CommandManager
Creates the aliases with the fallback prefix bukkit is creating normally, returns all the aliases with which command x would get registered on bukkit.
getAliases() - Method in class com.mrivanplays.commandworker.core.RegisteredCommand
Returns the aliases (names) of the registered command.
getArgument() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentData
Returns the Argument, data for is held here.
getArgumentByName(String) - Method in class com.mrivanplays.commandworker.core.LiteralNode
Returns Optional value of the argument with the name specified.
getArgumentIndex(String) - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the IndexRange of the specified argument name, if the argument was defined in the command structure.
getArguments() - Method in class com.mrivanplays.commandworker.core.LiteralNode
Returns unmodifiable copy of the base Arguments with their children.
getArgumentsByIndex(int) - Method in class com.mrivanplays.commandworker.core.LiteralNode
Returns unmodifiable list of all the arguments, held by this index.
getArgumentType() - Method in interface com.mrivanplays.commandworker.core.argument.Argument
Returns the brigadier argument type, if the argument is required.
getArgumentType() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
getChildren() - Method in interface com.mrivanplays.commandworker.core.argument.Argument
Returns unmodifiable copy of the children this argument is holding.
getChildren() - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
getChildren() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
getCommand() - Method in class com.mrivanplays.commandworker.core.RegisteredCommand
Returns the Command, held by this RegisteredCommand
getCommandStructure() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the command structure of the arguments held by this argument holder.
getCommandStructure() - Method in class com.mrivanplays.commandworker.core.RegisteredCommand
Returns the cached LiteralNode of the represented command, which is representing the command structure.
getCommandSyntaxException() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentData
Returns the thrown command syntax exception while the argument was parsed.
getEnd() - Method in class com.mrivanplays.commandworker.core.argument.parser.IndexRange
Returns the ending index of the range, or if it's not a range - -1
getIndex() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentData
Returns the IndexRange for the argument.
getIndex() - Method in class com.mrivanplays.commandworker.core.argument.parser.IndexRange
Returns the index if this object doesn't represent a range, or the starting index if this object is holding a range.
getInput() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the sender argument input.
getLastArgument() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the last argument, for which we have a value.
getName() - Method in interface com.mrivanplays.commandworker.core.argument.Argument
Returns the name of the argument.
getName() - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
getName() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
getParsedValue() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentData
Returns the parsed value of the held argument.
getPermissionCheckFunction() - Method in class com.mrivanplays.commandworker.core.RegisteredCommand
Returns the permission check Predicate.
getRawArgs() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the arguments in their raw state.
getRawRequiredArgument(String) - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the specified required argument's name's argument if is typed in its raw state.
getRawValue() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentData
Returns the raw value of the held argument.
getRegisteredCommands() - Method in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
getRegisteredCommands() - Method in interface com.mrivanplays.commandworker.core.CommandManager
Returns unmodifiable copy of the commands, registered and held by this command manager.
getRequiredArgument(String, Class<V>) - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Retrieves the required argument with the specified name, which should be parsed to the specified type.
getStart() - Method in class com.mrivanplays.commandworker.core.argument.parser.IndexRange
Returns the starting index of the range, or if it's not a range - the index.
getSuggestionsConsumer() - Method in interface com.mrivanplays.commandworker.core.argument.Argument
Returns the SuggestionsBuilder consumer, which is able to modify the suggestions for this argument.
getSuggestionsConsumer() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 

H

handleRegistration(RegisteredCommand<S>) - Method in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
hasPermission(S) - Method in class com.mrivanplays.commandworker.core.RegisteredCommand
Returns whenever the specified sender has permission to execute this command.

I

IndexRange - Class in com.mrivanplays.commandworker.core.argument.parser
Represents index range.
IndexRange(int, int) - Constructor for class com.mrivanplays.commandworker.core.argument.parser.IndexRange
 
IndexRange(int) - Constructor for class com.mrivanplays.commandworker.core.argument.parser.IndexRange
 
isBrigadierSupported() - Method in interface com.mrivanplays.commandworker.core.CommandManager
Returns whether or not brigadier is supported for this command manager.
isLiteral() - Method in interface com.mrivanplays.commandworker.core.argument.Argument
Returns whether or not this argument is literal.
isRange() - Method in class com.mrivanplays.commandworker.core.argument.parser.IndexRange
Returns whether or not this index range is a range.
isTyped(String) - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns whether or not the specified argument is typed (being present when the command was executed).

L

literal(String) - Static method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
Creates a new LiteralArgument
LiteralArgument - Class in com.mrivanplays.commandworker.core.argument
Represents literal argument.
LiteralNode - Class in com.mrivanplays.commandworker.core
Represents a literal node, holder of the base sub command completions.

M

markShouldExecuteCommand() - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
markShouldExecuteCommand() - Method in class com.mrivanplays.commandworker.core.LiteralNode
 
markShouldNotExecuteCommand() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 

N

newArgumentData(IndexRange, Argument, Object, String, CommandSyntaxException) - Static method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentData
 
node() - Static method in class com.mrivanplays.commandworker.core.LiteralNode
Creates a new LiteralNode

R

register(Command<S>, Predicate<S>, String...) - Method in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
register(Command<S>, String...) - Method in interface com.mrivanplays.commandworker.core.CommandManager
Registers the specified command with the identifying aliases.
register(Command<S>, Predicate<S>, String...) - Method in interface com.mrivanplays.commandworker.core.CommandManager
Registers the specified command with the identifying aliases, giving option to check for permissions.
RegisteredCommand<S> - Class in com.mrivanplays.commandworker.core
Represents a command which is registered.
RegisteredCommand(String[], Command<S>, Predicate<S>) - Constructor for class com.mrivanplays.commandworker.core.RegisteredCommand
 
registeredCommands - Variable in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
RequiredArgument<V> - Class in com.mrivanplays.commandworker.core.argument
Represents required argument.

S

setShouldFallback(boolean) - Method in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
setShouldFallback(boolean) - Method in interface com.mrivanplays.commandworker.core.CommandManager
 
shouldExecuteCommand() - Method in interface com.mrivanplays.commandworker.core.argument.Argument
Returns whether or not this argument should call the base command's execute method when the argument ends up being the last typed argument.
shouldExecuteCommand() - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
shouldExecuteCommand() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
shouldExecuteCommand() - Method in class com.mrivanplays.commandworker.core.LiteralNode
Returns whether the node should call the base command's execute method if the command was called with no arguments.
shouldFallback - Variable in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
shouldFallback() - Method in class com.mrivanplays.commandworker.core.AbstractCommandManager
 
shouldFallback() - Method in interface com.mrivanplays.commandworker.core.CommandManager
Returns whether or not this command manager should fallback to the implemented on platform's normal registering technique when brigadier isn't supported.
size() - Method in class com.mrivanplays.commandworker.core.argument.parser.ArgumentHolder
Returns the arguments length.
suggests(Consumer<SuggestionsBuilder>) - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
Sets the SuggestionsBuilder modifications to get applied later.
syntaxException(String) - Method in interface com.mrivanplays.commandworker.core.Command
Helper method for creating CommandSyntaxExceptions

T

then(Argument) - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
Adds a child to this argument.
then(Argument...) - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
then(Iterable<Argument>) - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
then(Argument) - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
Adds a child to this required argument.
then(Argument...) - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
then(Iterable<Argument>) - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
toString() - Method in class com.mrivanplays.commandworker.core.argument.LiteralArgument
 
toString() - Method in class com.mrivanplays.commandworker.core.argument.RequiredArgument
 
toString() - Method in class com.mrivanplays.commandworker.core.LiteralNode
 
toString() - Method in class com.mrivanplays.commandworker.core.RegisteredCommand
 
A B C E G H I L M N R S T 
Skip navigation links

Copyright © 2020. All rights reserved.