Interface SignText.Builder
- All Superinterfaces:
DataComponentBuilder<SignText>
- Enclosing interface:
SignText
Builder for
SignText.-
Method Summary
Modifier and TypeMethodDescriptionaddMessage(ComponentLike message) Adds a message to the list of messages on this sign side.Sets the color of the text on this sign side.hasGlowingText(boolean hasGlowingText) Sets whether the text on this sign side has a glowing effect.messages(List<? extends ComponentLike> messages) Sets the list of messages on this sign side.Methods inherited from interface DataComponentBuilder
build
-
Method Details
-
messages
@Contract(value="_ -> this", mutates="this") SignText.Builder messages(List<? extends ComponentLike> messages) Sets the list of messages on this sign side.- Parameters:
messages- the list of messages- Returns:
- the builder for chaining
-
addMessage
Adds a message to the list of messages on this sign side.- Parameters:
message- the message to add- Returns:
- the builder for chaining
-
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- true if the text has a glowing effect, false otherwise- Returns:
- the builder for chaining
-