Package me.hsgamer.hscore.bukkit.gui
Class GUIUtils
java.lang.Object
me.hsgamer.hscore.bukkit.gui.GUIUtils
The utility class for
GUIHolder-
Method Summary
Modifier and TypeMethodDescriptionstatic voidallowMoveItemOnBottom(GUIHolder holder) Set that the holder should not cancel the click event on bottom inventorystatic voidcancelDragEvent(GUIHolder holder) Set that the holder cancels drag event on top inventorystatic intnormalizeToChestSize(int size) Normalize the size to a valid chest size
-
Method Details
-
allowMoveItemOnBottom
Set that the holder should not cancel the click event on bottom inventory- Parameters:
holder- the gui holder
-
cancelDragEvent
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
-