Interface SignText.Builder
- All Superinterfaces:
DataComponentBuilder<SignText>
- Enclosing interface:
SignText
Builder for
SignText.-
Method Summary
Modifier and TypeMethodDescriptionSets the color of the text on this sign side.hasGlowingText(boolean hasGlowingText) Sets whether the text on this sign side has a glowing effect.line(int index, ComponentLike line) Sets a line at the specified index on this sign side.lines(List<? extends ComponentLike> lines) Sets the lines on this sign side.Methods inherited from interface DataComponentBuilder
build
-
Method Details
-
lines
@Contract(value="_ -> this", mutates="this") SignText.Builder lines(List<? extends ComponentLike> lines) Sets the lines on this sign side.- Parameters:
lines- the list of messages- Returns:
- the builder for chaining
-
line
@Contract(value="_, _ -> this", mutates="this") SignText.Builder line(int index, ComponentLike line) Sets a line at the specified index on this sign side.- Parameters:
index- the line indexline- the message- Returns:
- the builder for chaining
- Throws:
IndexOutOfBoundsException- when the line does not exist
-
color
Sets the color of the text on this sign side.- Parameters:
color- the color of the text- Returns:
- the builder for chaining
-
hasGlowingText
@Contract(value="_ -> this", mutates="this") SignText.Builder hasGlowingText(boolean hasGlowingText) Sets whether the text on this sign side has a glowing effect.- Parameters:
hasGlowingText-trueif the text has a glowing effect- Returns:
- the builder for chaining
-