Uses of Interface
com.github.siroshun09.mccommand.common.argument.Argument
-
Packages that use Argument Package Description com.github.siroshun09.mccommand.bukkit.parser The package of classes that implement theArgumentParser
that can be used on Bukkit.com.github.siroshun09.mccommand.bungee.parser The package of classes that implement theArgumentParser
that can be used on BungeeCord.com.github.siroshun09.mccommand.common The root package of this library.com.github.siroshun09.mccommand.common.argument The package of classes relevant to arguments.com.github.siroshun09.mccommand.common.argument.parser The package of classes to parseArgument
.com.github.siroshun09.mccommand.common.context The package of classes relevant to the context of the command execution.com.github.siroshun09.mccommand.paper.parser The package of classes that implement theArgumentParser
that can be used on Bukkit. -
-
Uses of Argument in com.github.siroshun09.mccommand.bukkit.parser
Methods in com.github.siroshun09.mccommand.bukkit.parser with parameters of type Argument Modifier and Type Method Description @Nullable Material
MaterialParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable OfflinePlayer
OfflinePlayerParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable Player
PlayerExactParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable Player
PlayerParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable Sound
SoundParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@NotNull Material
MaterialParser. parseOrThrow(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@NotNull Sound
SoundParser. parseOrThrow(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it. -
Uses of Argument in com.github.siroshun09.mccommand.bungee.parser
Methods in com.github.siroshun09.mccommand.bungee.parser with parameters of type Argument Modifier and Type Method Description @Nullable ProxiedPlayer
ProxiedPlayerParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it. -
Uses of Argument in com.github.siroshun09.mccommand.common
Methods in com.github.siroshun09.mccommand.common with parameters of type Argument Modifier and Type Method Description @Nullable Command
SubCommandHolder. search(@NotNull Argument argument)
Gets the command whose name matches the string contained in theArgument
.@NotNull Optional<Command>
SubCommandHolder. searchOptional(@NotNull Argument argument)
Gets the command whose name matches the string contained in theArgument
. -
Uses of Argument in com.github.siroshun09.mccommand.common.argument
Methods in com.github.siroshun09.mccommand.common.argument that return Argument Modifier and Type Method Description static Argument
Argument. of(int index, @NotNull String argument)
Creates anArgument
from an index and a string. -
Uses of Argument in com.github.siroshun09.mccommand.common.argument.parser
Methods in com.github.siroshun09.mccommand.common.argument.parser with parameters of type Argument Modifier and Type Method Description default IllegalArgumentException
ArgumentParser. generateException(@NotNull Argument argument)
Generates an exception that throws when the parsing fails.default IllegalArgumentException
ArgumentParser. generateException(@NotNull Argument argument, @Nullable Throwable exception)
Generates an exception that throws when the parsing fails.T
ArgumentParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable UUID
UUIDParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.default Optional<T>
ArgumentParser. parseOptional(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.default T
ArgumentParser. parseOrDefault(@NotNull Argument argument, T def)
Parses anArgument
to a specified type and returns it.default T
ArgumentParser. parseOrThrow(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@NotNull UUID
UUIDParser. parseOrThrow(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.Method parameters in com.github.siroshun09.mccommand.common.argument.parser with type arguments of type Argument Modifier and Type Method Description static <R> ArgumentParser<R>
ArgumentParser. of(@NotNull Function<Argument,R> function)
Creates an instance of the parser fromFunction
. -
Uses of Argument in com.github.siroshun09.mccommand.common.context
Methods in com.github.siroshun09.mccommand.common.context that return types with arguments of type Argument Modifier and Type Method Description @NotNull @Unmodifiable List<Argument>
CommandContext. getArguments()
Gets the given arguments.@NotNull List<Argument>
SimpleCommandContext. getArguments()
Gets the given arguments.Method parameters in com.github.siroshun09.mccommand.common.context with type arguments of type Argument Modifier and Type Method Description SimpleCommandContext.SimpleCommandContextBuilder
SimpleCommandContext.SimpleCommandContextBuilder. setArguments(List<Argument> arguments)
Sets the arguments.Constructor parameters in com.github.siroshun09.mccommand.common.context with type arguments of type Argument Constructor Description SimpleCommandContext(@NotNull Command command, @NotNull Sender sender, @NotNull List<Argument> arguments, @NotNull String label)
Creates aSimpleCommandContext
-
Uses of Argument in com.github.siroshun09.mccommand.paper.parser
Methods in com.github.siroshun09.mccommand.paper.parser with parameters of type Argument Modifier and Type Method Description @Nullable Material
MaterialParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable OfflinePlayer
OfflinePlayerParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable Player
PlayerExactParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable Player
PlayerParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@Nullable Sound
SoundParser. parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@NotNull Material
MaterialParser. parseOrThrow(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.@NotNull Sound
SoundParser. parseOrThrow(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.
-