Package me.eddie.inventoryguiapi.util
Class GUISettingValidation
java.lang.Object
me.eddie.inventoryguiapi.util.GUISettingValidation
Internally used to validate if GUI settings are valid
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAllowed(org.bukkit.event.inventory.InventoryType inventoryType) Check if an InventoryType is allowed to be used in a GUIstatic booleanisValid(int maxSize, boolean autoResize, org.bukkit.event.inventory.InventoryType inventoryType) Check if the provided GUI Settings are valid
-
Constructor Details
-
GUISettingValidation
public GUISettingValidation()
-
-
Method Details
-
isAllowed
public static boolean isAllowed(org.bukkit.event.inventory.InventoryType inventoryType) Check if an InventoryType is allowed to be used in a GUI- Parameters:
inventoryType- The InventoryType wanting to be used- Returns:
- True if can be used, False otherwise
-
isValid
public static boolean isValid(int maxSize, boolean autoResize, org.bukkit.event.inventory.InventoryType inventoryType) Check if the provided GUI Settings are valid- Parameters:
maxSize- The maxSize of the GUIautoResize- Whether or not the GUI wishes to auto-resizeinventoryType- The type of inventory to be used with the GUI- Returns:
- True if can be used, False otherwise
-