public static interface PlaceholderText.Builder extends ResettableBuilder<PlaceholderText,PlaceholderText.Builder>
PlaceholderText objects.| Modifier and Type | Method and Description |
|---|---|
PlaceholderText |
build()
Builds and returns the placeholder.
|
PlaceholderText.Builder |
setContext(PlaceholderContext context)
Sets the
PlaceholderContext that will be provided to the
PlaceholderParser to create the Text when
TextRepresentable.toText() is called. |
PlaceholderText.Builder |
setParser(PlaceholderParser parser)
Sets the token that represents a
PlaceholderParser for use
in this PlaceholderText. |
from, resetPlaceholderText.Builder setParser(PlaceholderParser parser)
PlaceholderParser for use
in this PlaceholderText.parser - The PlaceholderParser to usePlaceholderText.Builder setContext(PlaceholderContext context)
PlaceholderContext that will be provided to the
PlaceholderParser to create the Text when
TextRepresentable.toText() is called.context - The PlaceholderContext to use.PlaceholderText build() throws IllegalStateException
PlaceholderTextIllegalStateException - if the builder has not been completed,
or the associated PlaceholderParser could not validate the
built PlaceholderText, if applicable.