-
Notifications
You must be signed in to change notification settings - Fork 6
7. Utility Methods
This library includes many additional utility methods to remove boilerplate code and speed up development, these methods include.
fill(x1, y1, x2, y2, GUISlot.Builder): fill the designated area of a GUI, Will fill item in a rectangular shape based on points provided.
fillBorder(GUISlot.Builder): Completely fill the outer border of a GUI.
all(GUISlot.Builder): Fill all slots of a GUI, with the provided GUISlot.
nextAvailableSlot(GUISlot.Builder): Set the item of the next available slot not occupied by any item. Any null item slot will be overridden as this
method only checks for slots occupied by an ItemStack.
isBukkitInventory(Inventory): check whether another Inventory is the GUI Bukkit inventory.
guiItem(Material, GUIItem.Builder): create a GUIItem outside a GUISlot for utility purposes.