Class TextComponentProducer

java.lang.Object
com.sk89q.worldedit.util.formatting.component.TextComponentProducer
Direct Known Subclasses:
CodeFormat, CommandUsageBox, ErrorFormat, LabelFormat, MessageBox, SubtleFormat

public class TextComponentProducer extends Object
  • Constructor Details

    • TextComponentProducer

      public TextComponentProducer()
  • Method Details

    • getBuilder

      public com.sk89q.worldedit.util.formatting.text.TextComponent.Builder getBuilder()
    • append

      public TextComponentProducer append(com.sk89q.worldedit.util.formatting.text.Component component)
      Adds a component as a child to this Producer.
      Parameters:
      component - The component
      Returns:
      The producer, for chaining
    • append

      public TextComponentProducer append(String string)
      Adds a string as a child to this Producer.
      Parameters:
      string - The text
      Returns:
      The producer, for chaining
    • newline

      public TextComponentProducer newline()
      Adds a newline as a child to this Producer.
      Returns:
      The producer, for chaining
    • create

      public com.sk89q.worldedit.util.formatting.text.TextComponent create()
      Create a TextComponent from this producer.
      Returns:
      The component
    • reset

      public TextComponentProducer reset()
      Reset the producer to a clean slate.
      Returns:
      The producer, for chaining