Interface SignText.Builder
- All Superinterfaces:
DataComponentBuilder<SignText>
- Enclosing interface:
SignText
Builder for
SignText.- Since:
- 26.3
-
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, net.kyori.adventure.text.ComponentLike line) Sets a line at the specified index on this sign side.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 net.kyori.adventure.text.ComponentLike> lines) Sets the lines on this sign side.- Parameters:
lines- the list of messages- Returns:
- the builder for chaining
- Since:
- 26.3
-
line
@Contract(value="_, _ -> this", mutates="this") SignText.Builder line(int index, net.kyori.adventure.text.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- Since:
- 26.3
-
color
Sets the color of the text on this sign side.- Parameters:
color- the color of the text- Returns:
- the builder for chaining
- Since:
- 26.3
-
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
- Since:
- 26.3
-