Class ContentDisplay

java.lang.Object
org.mvplugins.multiverse.core.display.ContentDisplay

public class ContentDisplay extends Object
Helps to display contents such as list and maps in a nicely formatted fashion.
  • Method Details

    • create

      @NotNull public static @NotNull ContentDisplay create()
      Makes a new ContentDisplay instance to use.
      Returns:
      New ContentDisplay instance.
    • addContent

      @NotNull public @NotNull ContentDisplay addContent(@NotNull @NotNull ContentProvider parser)
      Adds content to be displayed.
      Parameters:
      parser - The content parser to add.
      Returns:
      Same ContentDisplay for method chaining.
    • withSendHandler

      @NotNull public @NotNull ContentDisplay withSendHandler(@NotNull @NotNull SendHandler handler)
      Sets the handler for displaying the message to command sender.
      Parameters:
      handler - The send handler to use.
      Returns:
      Same ContentDisplay for method chaining.
    • send

      public void send(@NotNull @NotNull MVCommandIssuer issuer)
      Format and display the message to command sender.
      Parameters:
      issuer - The target command sender to show the display to.