Class ScrollingGui

java.lang.Object
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public class ScrollingGui
extends PaginatedGui
GUI that allows you to scroll through items
  • Constructor Details

    • ScrollingGui

      public ScrollingGui​(int rows, int pageSize, @NotNull @NotNull net.kyori.adventure.text.Component title, @NotNull @NotNull ScrollType scrollType, @NotNull @NotNull java.util.Set<InteractionModifier> interactionModifiers)
      Main constructor of the Scrolling GUI
      Parameters:
      rows - The rows the GUI should have
      pageSize - The Page size
      title - The title using Component
      scrollType - The ScrollType
      interactionModifiers - A set containing the InteractionModifier this GUI should use
      Since:
      3.0.0
    • ScrollingGui

      public ScrollingGui​(int rows, int pageSize, @NotNull @NotNull net.kyori.adventure.text.Component title, @NotNull @NotNull ScrollType scrollType)
      Alternative constructor of the Scrolling GUI, for when the GUI doesn't require any InteractionModifier
      Parameters:
      rows - The rows the GUI should have
      pageSize - The Page size
      title - The title using Component
      scrollType - The ScrollType
      Since:
      3.0.0
    • ScrollingGui

      public ScrollingGui​(int rows, int pageSize, @NotNull @NotNull net.kyori.adventure.text.Component title)
      Alternative constructor that doesn't require the ScrollType
      Parameters:
      rows - The rows the GUI should have
      pageSize - The Page size
      title - The title using Component
      Since:
      3.0.0
    • ScrollingGui

      public ScrollingGui​(int rows, @NotNull @NotNull net.kyori.adventure.text.Component title, @NotNull @NotNull ScrollType scrollType)
      Alternative constructor that doesn't require the page size
      Parameters:
      rows - The rows the GUI should have
      title - The title using Component
      scrollType - The ScrollType
      Since:
      3.0.0
    • ScrollingGui

      public ScrollingGui​(int rows, @NotNull @NotNull net.kyori.adventure.text.Component title)
      Alternative constructor that doesn't require the ScrollType or page size
      Parameters:
      rows - The rows the GUI should have
      title - The title using Component
      Since:
      3.0.0
    • ScrollingGui

      public ScrollingGui​(@NotNull @NotNull net.kyori.adventure.text.Component title, @NotNull @NotNull ScrollType scrollType)
      Alternative constructor that doesn't require the rows or page size
      Parameters:
      title - The title using Component
      scrollType - The ScrollType
      Since:
      3.0.0
    • ScrollingGui

      public ScrollingGui​(@NotNull @NotNull net.kyori.adventure.text.Component title)
      Alternative constructor that only requires title
      Parameters:
      title - The title using Component
    • ScrollingGui

      @Deprecated public ScrollingGui​(int rows, int pageSize, @NotNull @NotNull java.lang.String title, @NotNull @NotNull ScrollType scrollType)
      Main constructor of the Scrolling GUI
      Parameters:
      rows - The rows the GUI should have
      pageSize - The Page size
      title - The GUI's title
      scrollType - The ScrollType
    • ScrollingGui

      @Deprecated public ScrollingGui​(int rows, int pageSize, @NotNull @NotNull java.lang.String title)
      Deprecated.
      Alternative constructor that doesn't require the ScrollType
      Parameters:
      rows - The rows the GUI should have
      pageSize - The Page size
      title - The GUI's title
    • ScrollingGui

      @Deprecated public ScrollingGui​(int rows, @NotNull @NotNull java.lang.String title)
      Deprecated.
      Alternative constructor that doesn't require the ScrollType or page size
      Parameters:
      rows - The rows the GUI should have
      title - The GUI's title
    • ScrollingGui

      @Deprecated public ScrollingGui​(int rows, @NotNull @NotNull java.lang.String title, @NotNull @NotNull ScrollType scrollType)
      Alternative constructor that doesn't require the page size
      Parameters:
      rows - The rows the GUI should have
      title - The GUI's title
      scrollType - The ScrollType
    • ScrollingGui

      @Deprecated public ScrollingGui​(@NotNull @NotNull java.lang.String title)
      Deprecated.
      Alternative constructor that only requires title
      Parameters:
      title - The GUI's title
    • ScrollingGui

      @Deprecated public ScrollingGui​(@NotNull @NotNull java.lang.String title, @NotNull @NotNull ScrollType scrollType)
      Deprecated.
      Alternative constructor that doesn't require the rows or page size
      Parameters:
      title - The GUI's title
      scrollType - The ScrollType
  • Method Details