Class GUIUtils

java.lang.Object
me.hsgamer.hscore.bukkit.gui.GUIUtils

public final class GUIUtils extends Object
The utility class for GUIHolder
  • Method Details

    • allowMoveItemOnBottom

      public static void allowMoveItemOnBottom(GUIHolder holder)
      Set that the holder should not cancel the click event on bottom inventory
      Parameters:
      holder - the gui holder
    • cancelDragEvent

      public static void cancelDragEvent(GUIHolder holder)
      Set that the holder cancels drag event on top inventory
      Parameters:
      holder - the gui holder
    • normalizeToChestSize

      public static int normalizeToChestSize(int size)
      Normalize the size to a valid chest size
      Parameters:
      size - the size
      Returns:
      the normalized size