Class LegacyStargateComponent

java.lang.Object
org.sgrewritten.stargate.api.network.portal.formatting.LegacyStargateComponent
All Implemented Interfaces:
StargateComponent

public final class LegacyStargateComponent extends Object implements StargateComponent
  • Constructor Details

    • LegacyStargateComponent

      public LegacyStargateComponent(String text)
  • Method Details

    • getText

      public String getText()
    • of

      public static Holder<StargateComponent> of(String text)
    • setSignLine

      public void setSignLine(int index, org.bukkit.block.Sign sign)
      Description copied from interface: StargateComponent
      Set a line with the text of this component in the specified sign state
      Specified by:
      setSignLine in interface StargateComponent
      Parameters:
      index -

      The index of the line to change

      sign -

      The sign state to modify

    • sendMessage

      public void sendMessage(org.bukkit.entity.Entity receiver)
      Specified by:
      sendMessage in interface StargateComponent
      Parameters:
      receiver -
    • append

      public StargateComponent append(StargateComponent value)
      Description copied from interface: StargateComponent
      Append another components content after this component
      Specified by:
      append in interface StargateComponent
      Parameters:
      value -

      The other component to append

      Returns:

      The resulting component after the merge

    • plainText

      public String plainText()
      Specified by:
      plainText in interface StargateComponent
      Returns:
      A plain text serialization (no colors and so on)