Class GUIData

java.lang.Object
at.hugob.plugin.library.gui.GUIData

public class GUIData extends Object
Holds all data a GUI may need to function
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @Nullable org.bukkit.inventory.ItemStack
    The Background item for the GUI
    final int
    The number of Rows the GUI should have
    final int
    The number of Slots the GUI should have
    final @NotNull net.kyori.adventure.text.Component
    The title of the GUI
  • Constructor Summary

    Constructors
    Constructor
    Description
    GUIData(@NotNull net.kyori.adventure.text.Component title, int rows, @Nullable org.bukkit.inventory.ItemStack fillerItem)
    Creates the basic GUIData needed for a GUIHandler to function
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • title

      @NotNull public final @NotNull net.kyori.adventure.text.Component title
      The title of the GUI
    • rows

      public final int rows
      The number of Rows the GUI should have
    • size

      public final int size
      The number of Slots the GUI should have
    • fillerItem

      @Nullable public final @Nullable org.bukkit.inventory.ItemStack fillerItem
      The Background item for the GUI
  • Constructor Details

    • GUIData

      public GUIData(@NotNull @NotNull net.kyori.adventure.text.Component title, int rows, @Nullable @Nullable org.bukkit.inventory.ItemStack fillerItem)
      Creates the basic GUIData needed for a GUIHandler to function
      Parameters:
      title - The tile for the GUI
      rows - The amount of rows the GUI should have
      fillerItem - The Background Filler item, null to leave empty