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