Interface SignText.Builder

All Superinterfaces:
DataComponentBuilder<SignText>
Enclosing interface:
SignText

@NonExtendable public static interface SignText.Builder extends DataComponentBuilder<SignText>
Builder for SignText.
Since:
26.3
  • 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 index
      line - the message
      Returns:
      the builder for chaining
      Throws:
      IndexOutOfBoundsException - when the line does not exist
      Since:
      26.3
    • 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
      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 - true if the text has a glowing effect
      Returns:
      the builder for chaining
      Since:
      26.3