Class PlaceholderAPIParser
java.lang.Object
org.lushplugins.chatcolorhandler.parsers.custom.PlaceholderAPIParser
- All Implemented Interfaces:
Parser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lushplugins.chatcolorhandler.parsers.Parser
Parser.OutputType
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
parseString
(@NotNull String string, @NotNull Parser.OutputType outputType) Parse a stringparseString
(@NotNull String string, @NotNull Parser.OutputType outputType, org.bukkit.entity.Player player) Parse a string in relation to a player
-
Field Details
-
INSTANCE
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceParser
- Returns:
- The type of the parser
ParserTypes
-
parseString
public String parseString(@NotNull @NotNull String string, @NotNull @NotNull Parser.OutputType outputType) Description copied from interface:Parser
Parse a string- Specified by:
parseString
in interfaceParser
- Parameters:
string
- The string to parseoutputType
- The output type to parse for- Returns:
- The parsed string
-
parseString
public String parseString(@NotNull @NotNull String string, @NotNull @NotNull Parser.OutputType outputType, org.bukkit.entity.Player player) Description copied from interface:Parser
Parse a string in relation to a player- Specified by:
parseString
in interfaceParser
- Parameters:
string
- The string to parseoutputType
- The output type to parse forplayer
- The player to apply whilst parsing- Returns:
- The parsed string
-