Class ProxiedPlayerParser
- java.lang.Object
-
- com.github.siroshun09.mccommand.bungee.parser.ProxiedPlayerParser
-
- All Implemented Interfaces:
ArgumentParser<ProxiedPlayer>
public class ProxiedPlayerParser extends Object implements ArgumentParser<ProxiedPlayer>
A class that parses anArgument
to anProxiedPlayer
.
-
-
Constructor Summary
Constructors Constructor Description ProxiedPlayerParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ProxiedPlayer
parse(@NotNull Argument argument)
Parses anArgument
to a specified type and returns it.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.siroshun09.mccommand.common.argument.parser.ArgumentParser
generateException, generateException, parseOptional, parseOrDefault, parseOrThrow
-
-
-
-
Constructor Detail
-
ProxiedPlayerParser
public ProxiedPlayerParser()
-
-
Method Detail
-
parse
@Nullable public @Nullable ProxiedPlayer parse(@NotNull @NotNull Argument argument)
Parses anArgument
to a specified type and returns it.- Specified by:
parse
in interfaceArgumentParser<ProxiedPlayer>
- Parameters:
argument
- the argument to be parsed- Returns:
- the value to be parsed, or
null
if the parsing fails
-
-