Interface SignText.Builder

All Superinterfaces:
DataComponentBuilder<SignText>
Enclosing interface:
SignText

@NonExtendable public static interface SignText.Builder extends DataComponentBuilder<SignText>
Builder for SignText.
  • 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

      @Contract(value="_ -> this", mutates="this") SignText.Builder addMessage(ComponentLike message)
      Adds a message to the list of messages on this sign side.
      Parameters:
      message - the message to add
      Returns:
      the builder for chaining
    • color

      @Contract(value="_ -> this", mutates="this") SignText.Builder color(DyeColor 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