public interface NucleusPlaceholderService
Modifier and Type | Method and Description |
---|---|
java.util.Optional<org.spongepowered.api.text.placeholder.PlaceholderParser> |
getParser(java.lang.String token)
Gets the parser associated with the provided token name, if any,
prefixing un-namespaced tokens with the Nucleus prefix.
|
org.spongepowered.api.text.placeholder.PlaceholderParser |
optionParser()
Gets the Nucleus placeholder parser for displaying
Subject.getOption(String) |
org.spongepowered.api.text.TextRepresentable |
parse(@Nullable org.spongepowered.api.command.CommandSource commandSource,
java.lang.String input) |
org.spongepowered.api.text.placeholder.PlaceholderText |
textForSubjectAndOption(org.spongepowered.api.service.permission.Subject subject,
java.lang.String option)
Creates a
PlaceholderText for displaying a Subject s
option. |
org.spongepowered.api.text.TextRepresentable parse(@Nullable org.spongepowered.api.command.CommandSource commandSource, java.lang.String input)
java.util.Optional<org.spongepowered.api.text.placeholder.PlaceholderParser> getParser(java.lang.String token)
token
- The token namePlaceholderParser
, if anyorg.spongepowered.api.text.placeholder.PlaceholderParser optionParser()
Subject.getOption(String)
org.spongepowered.api.text.placeholder.PlaceholderText textForSubjectAndOption(org.spongepowered.api.service.permission.Subject subject, java.lang.String option)
PlaceholderText
for displaying a Subject
s
option.subject
- The Subject
option
- The option to displayPlaceholderText