Interface PaperVision


@NullMarked public interface PaperVision
The Paper Gui manager.
Since:
0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Plugin plugin)
    Creates a new Paper Gui manager.
    void
    open(Player player, Gui gui)
    Opens the specified Gui for the specified player.
  • Method Details

    • create

      static PaperVision create(Plugin plugin)
      Creates a new Paper Gui manager.
      Parameters:
      plugin - the plugin
      Returns:
      the newly created Paper Gui manager
      Throws:
      NullPointerException - if the plugin is null.
      Since:
      0.1
      API Note:
      This method is pure since Listener registration is done lazily.
    • open

      void open(Player player, Gui gui)
      Opens the specified Gui for the specified player.
      Parameters:
      player - the player
      gui - the Gui
      Throws:
      NullPointerException - if the player or the GUI is null.
      Since:
      0.1