Class ContentDisplay
java.lang.Object
org.mvplugins.multiverse.core.display.ContentDisplay
Helps to display contents such as list and maps in a nicely formatted fashion.
-
Method Summary
Modifier and TypeMethodDescription@NotNull ContentDisplayaddContent(@NotNull ContentProvider parser) Adds content to be displayed.static @NotNull ContentDisplaycreate()Makes a newContentDisplayinstance to use.voidsend(@NotNull MVCommandIssuer issuer) Format and display the message to command sender.@NotNull ContentDisplaywithSendHandler(@NotNull SendHandler handler) Sets the handler for displaying the message to command sender.
-
Method Details
-
create
Makes a newContentDisplayinstance to use.- Returns:
- New
ContentDisplayinstance.
-
addContent
Adds content to be displayed.- Parameters:
parser- The content parser to add.- Returns:
- Same
ContentDisplayfor method chaining.
-
withSendHandler
Sets the handler for displaying the message to command sender.- Parameters:
handler- The send handler to use.- Returns:
- Same
ContentDisplayfor method chaining.
-
send
Format and display the message to command sender.- Parameters:
issuer- The target command sender to show the display to.
-