Class MessageBox
java.lang.Object
com.sk89q.worldedit.util.formatting.component.TextComponentProducer
com.sk89q.worldedit.util.formatting.component.MessageBox
- Direct Known Subclasses:
PaginationBox
Makes for a box with a border above and below.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageBox(String title, TextComponentProducer contents)
Create a new box.MessageBox(String title, TextComponentProducer contents, com.sk89q.worldedit.util.formatting.text.format.TextColor borderColor)
Create a new box. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Gets the message box contents producer.Methods inherited from class com.sk89q.worldedit.util.formatting.component.TextComponentProducer
append, append, getBuilder, newline, reset
-
Constructor Details
-
MessageBox
Create a new box. -
MessageBox
public MessageBox(String title, TextComponentProducer contents, com.sk89q.worldedit.util.formatting.text.format.TextColor borderColor)Create a new box.
-
-
Method Details
-
centerAndBorder
protected com.sk89q.worldedit.util.formatting.text.Component centerAndBorder(com.sk89q.worldedit.util.formatting.text.TextComponent text) -
getContents
Gets the message box contents producer.- Returns:
- The contents producer
-
create
public com.sk89q.worldedit.util.formatting.text.TextComponent create()Description copied from class:TextComponentProducer
Create a TextComponent from this producer.- Overrides:
create
in classTextComponentProducer
- Returns:
- The component
-