public class TextComponentProducer
extends java.lang.Object
Constructor and Description |
---|
TextComponentProducer() |
Modifier and Type | Method and Description |
---|---|
TextComponentProducer |
append(com.sk89q.worldedit.util.formatting.text.Component component)
Adds a component as a child to this Producer.
|
TextComponentProducer |
append(java.lang.String string)
Adds a string as a child to this Producer.
|
com.sk89q.worldedit.util.formatting.text.TextComponent |
create()
Create a TextComponent from this producer.
|
com.sk89q.worldedit.util.formatting.text.TextComponent.Builder |
getBuilder() |
TextComponentProducer |
newline()
Adds a newline as a child to this Producer.
|
TextComponentProducer |
reset()
Reset the producer to a clean slate.
|
public com.sk89q.worldedit.util.formatting.text.TextComponent.Builder getBuilder()
public TextComponentProducer append(com.sk89q.worldedit.util.formatting.text.Component component)
component
- The componentpublic TextComponentProducer append(java.lang.String string)
string
- The textpublic TextComponentProducer newline()
public com.sk89q.worldedit.util.formatting.text.TextComponent create()
public TextComponentProducer reset()