Class PlayerParser
- java.lang.Object
-
- com.github.siroshun09.mccommand.bukkit.parser.PlayerParser
-
- All Implemented Interfaces:
ArgumentParser<Player>
public class PlayerParser extends Object implements ArgumentParser<Player>
-
-
Constructor Summary
Constructors Constructor Description PlayerParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Playerparse(@NotNull Argument argument)Parses anArgumentto 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
-
PlayerParser
public PlayerParser()
-
-
Method Detail
-
parse
@Nullable public @Nullable Player parse(@NotNull @NotNull Argument argument)
Parses anArgumentto a specified type and returns it.- Specified by:
parsein interfaceArgumentParser<Player>- Parameters:
argument- the argument to be parsed- Returns:
- the value to be parsed, or
nullif the parsing fails
-
-