Class GUISettingValidation

java.lang.Object
me.eddie.inventoryguiapi.util.GUISettingValidation

public class GUISettingValidation extends Object
Internally used to validate if GUI settings are valid
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isAllowed(org.bukkit.event.inventory.InventoryType inventoryType)
    Check if an InventoryType is allowed to be used in a GUI
    static boolean
    isValid(int maxSize, boolean autoResize, org.bukkit.event.inventory.InventoryType inventoryType)
    Check if the provided GUI Settings are valid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 GUI
      autoResize - Whether or not the GUI wishes to auto-resize
      inventoryType - The type of inventory to be used with the GUI
      Returns:
      True if can be used, False otherwise