Interface StargateComponent

All Known Implementing Classes:
AdventureStargateComponent, LegacyStargateComponent

public sealed interface StargateComponent permits LegacyStargateComponent, AdventureStargateComponent (not exhaustive)
An interface for text components, meant to support both spigot and adventure text formats.
  • Method Details

    • empty

      static StargateComponent empty()
      Returns:
      An empty component with no text
    • setSignLine

      void setSignLine(int index, org.bukkit.block.Sign sign)
      Set a line with the text of this component in the specified sign state
      Parameters:
      index -

      The index of the line to change

      sign -

      The sign state to modify

    • sendMessage

      void sendMessage(org.bukkit.entity.Entity receiver)
      Parameters:
      receiver -
    • append

      Append another components content after this component
      Parameters:
      value -

      The other component to append

      Returns:

      The resulting component after the merge

    • plainText

      String plainText()
      Returns:
      A plain text serialization (no colors and so on)