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 ContentDisplay
addContent
(@NotNull ContentProvider parser) Adds content to be displayed.static @NotNull ContentDisplay
create()
Makes a newContentDisplay
instance to use.void
send
(@NotNull MVCommandIssuer issuer) Format and display the message to command sender.@NotNull ContentDisplay
withSendHandler
(@NotNull SendHandler handler) Sets the handler for displaying the message to command sender.
-
Method Details
-
create
Makes a newContentDisplay
instance to use.- Returns:
- New
ContentDisplay
instance.
-
addContent
Adds content to be displayed.- Parameters:
parser
- The content parser to add.- Returns:
- Same
ContentDisplay
for method chaining.
-
withSendHandler
Sets the handler for displaying the message to command sender.- Parameters:
handler
- The send handler to use.- Returns:
- Same
ContentDisplay
for method chaining.
-
send
Format and display the message to command sender.- Parameters:
issuer
- The target command sender to show the display to.
-