Class AdventureStargateComponent

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

public final class AdventureStargateComponent extends Object implements StargateComponent
  • Constructor Details

    • AdventureStargateComponent

      public AdventureStargateComponent(net.kyori.adventure.text.Component text)
  • Method Details

    • getText

      public net.kyori.adventure.text.Component getText()
    • of

      public static Holder<StargateComponent> of(net.kyori.adventure.text.Component 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)