Interface SignText.Builder

All Superinterfaces:
DataComponentBuilder<SignText>
Enclosing interface:
SignText

@NonExtendable public static interface SignText.Builder extends DataComponentBuilder<SignText>
Builder for SignText.
  • Method Details

    • lines

      @Contract(value="_ -> this", mutates="this") SignText.Builder lines(List<? extends ComponentLike> messages)
      Sets the lines on this sign side.
      Parameters:
      messages - the list of messages
      Returns:
      the builder for chaining
    • line

      @Contract(value="_, _ -> this", mutates="this") SignText.Builder line(int index, ComponentLike message)
      Sets a line at the specified index on this sign side.
      Parameters:
      index - the line index
      message - the message
      Returns:
      the builder for chaining
    • addLine

      @Contract(value="_ -> this", mutates="this") SignText.Builder addLine(ComponentLike message)
      Adds a line on this sign side.
      Parameters:
      message - the message
      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
      Returns:
      the builder for chaining