Package net.orbyfied.j8.command
Class Context
java.lang.Object
net.orbyfied.j8.command.Context
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeclares the purposes/destinies of an invocation. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of argument values.protected booleanIf the text can be formatted.protected NodeThe current node we are at.protected ExecutableThe last/current executable node.protected final CommandManagerThe command engine.All flags registered.All one-char-able flags by character.All registered flags by name.The flag values.protected StringThe intermediate status text.Options usable in parsing.protected net.orbyfied.j8.util.StringReaderThe current string reader used for parsing.protected NodeThe root command node.protected final org.bukkit.command.CommandSenderThe sender of the command.protected BooleanIf the invocation was successful.protected Context.TargetThe purspose of this invocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanFormat(boolean canFormat) engine()<T> TgetArgument(String id) <T> TgetArgument(String id, Class<T> tClass) <T> TgetArgument(net.orbyfied.j8.registry.Identifier identifier) <T> TgetArgument(net.orbyfied.j8.registry.Identifier identifier, Class<T> tClass) Flag<?>getFlagByCharacter(char c) Flag<?>getFlagByName(String name) getFlags()<T> TgetFlagValue(String name) <T> TgetFlagValue(String name, Class<T> tClass) <T> TgetFlagValue(String name, Class<T> tClass, T ifUnset) <T> TgetFlagValue(Flag<?> flag, Class<T> tClass, T ifUnset) <T> TgetFlagValue(Flag<?> flag, T ifUnset) <T> TgetFlagValue(Flag<T> flag) <T> Optional<T>getLocalOption(String identifier) <T> Optional<T>getLocalOption(String identifier, Class<T> tClass) <T> Optional<T><T> Optional<T>getOption(net.orbyfied.j8.registry.Identifier identifier) intermediateText(String text) net.orbyfied.j8.util.StringReaderreader()org.bukkit.command.CommandSendersender()setArgument(String id, Object o) setArgument(net.orbyfied.j8.registry.Identifier id, Object o) setLocalOption(String identifier, Object o) successful(boolean b) target()target(Context.Target target) unsetArgument(String id) unsetArgument(net.orbyfied.j8.registry.Identifier id) unsetLocalOption(String identifier) unsetOption(String id) unsetOption(net.orbyfied.j8.registry.Identifier id)
-
Field Details
-
sender
protected final org.bukkit.command.CommandSender senderThe sender of the command. -
target
The purspose of this invocation. -
rootCommand
The root command node. -
argValues
The list of argument values. -
options
Options usable in parsing. -
engine
The command engine. -
intermediateText
The intermediate status text. -
canFormat
protected boolean canFormatIf the text can be formatted. -
successful
If the invocation was successful. -
reader
protected net.orbyfied.j8.util.StringReader readerThe current string reader used for parsing. -
current
The current node we are at. -
currentExecutable
The last/current executable node. -
flags
All flags registered. -
flagsByName
All registered flags by name. -
flagsByChar
All one-char-able flags by character. -
flagValues
The flag values.
-
-
Constructor Details
-
Context
-
-
Method Details
-
canFormat
-
engine
-
sender
public org.bukkit.command.CommandSender sender() -
target
-
intermediateText
-
intermediateText
-
successful
-
successful
-
target
-
rootCommand
-
reader
public net.orbyfied.j8.util.StringReader reader() -
currentExecutable
-
currentNode
-
halt
-
halt
-
halt
-
fail
-
fail
-
fail
-
getArgumentValues
-
getArgument
public <T> T getArgument(net.orbyfied.j8.registry.Identifier identifier) -
getArgument
-
getArgument
-
getArgument
-
setArgument
-
setArgument
-
unsetArgument
-
unsetArgument
-
getOptions
-
getLocalOption
-
getLocalOption
-
setLocalOption
-
unsetLocalOption
-
getOption
-
getOption
-
setOption
-
setOption
-
unsetOption
-
unsetOption
-
pushFlag
-
getFlags
-
getFlagByName
-
getFlagByCharacter
-
getFlagValue
-
getFlagValue
-
getFlagValue
-
getFlagValue
-
getFlagValue
-
getFlagValue
-