public class MessageBox extends TextComponentProducer
Constructor and Description |
---|
MessageBox(java.lang.String title,
TextComponentProducer contents)
Create a new box.
|
MessageBox(java.lang.String title,
TextComponentProducer contents,
com.sk89q.worldedit.util.formatting.text.format.TextColor borderColor)
Create a new box.
|
Modifier and Type | Method and Description |
---|---|
protected com.sk89q.worldedit.util.formatting.text.Component |
centerAndBorder(com.sk89q.worldedit.util.formatting.text.TextComponent text) |
com.sk89q.worldedit.util.formatting.text.TextComponent |
create()
Create a TextComponent from this producer.
|
TextComponentProducer |
getContents()
Gets the message box contents producer.
|
append, append, getBuilder, newline, reset
public MessageBox(java.lang.String title, TextComponentProducer contents)
public MessageBox(java.lang.String title, TextComponentProducer contents, com.sk89q.worldedit.util.formatting.text.format.TextColor borderColor)
protected com.sk89q.worldedit.util.formatting.text.Component centerAndBorder(com.sk89q.worldedit.util.formatting.text.TextComponent text)
public TextComponentProducer getContents()
public com.sk89q.worldedit.util.formatting.text.TextComponent create()
TextComponentProducer
create
in class TextComponentProducer