Class ScrollingGui

All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

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

  • Method Details

    • next

      public boolean next()
      Overrides PaginatedGui.next() to make it work with the specific scrolls
      Overrides:
      next in class PaginatedGui
      Returns:
      False if there is no next page.
    • previous

      public boolean previous()
      Overrides PaginatedGui.previous() to make it work with the specific scrolls
      Overrides:
      previous in class PaginatedGui
      Returns:
      False if there is no previous page.
    • open

      public void open(@NotNull @NotNull org.bukkit.entity.HumanEntity player)
      Overrides PaginatedGui.open(HumanEntity) to make it work with the specific scrolls
      Overrides:
      open in class PaginatedGui
      Parameters:
      player - The HumanEntity to open the GUI to
    • open

      public void open(@NotNull @NotNull org.bukkit.entity.HumanEntity player, int openPage)
      Overrides PaginatedGui.open(HumanEntity, int) to make it work with the specific scrolls
      Overrides:
      open in class PaginatedGui
      Parameters:
      player - The HumanEntity to open the GUI to
      openPage - The page to open on