Create advanced slots to make completely interactive slots. (see wiki)
Add pagination support to your GUIs easily.
Create automatic repeat task for GUI. The task will be stopped when GUI closed.
Fully, modular design.
Make configurable your GUIs easily.
Automatically caches configuration items. Doesn't deserializes over and over.
Don't work hard work smart. These methods will handle your boring works: fillColumn(), fillRow(), fillGui(), sendTitleUpdate(), sendSizeUpdate()
Allows players clicking their own inventory during they using a GUI.
Feel safe. obliviate-invs tested in live. It is stable.
Modules
Core: The core module. Provides GUI classes.
Pagination: Provides pagination support for GUIs. ConfigurableGUI: Provides Configurable GUI classes to serializing GUIs to human-readable configurations. AdvancedSlot: Provides advanced slots to GUIs. (remember, custom GUIs of anvils, enchantment tables, brewing stands in Hypixel Skyblock)
advancedSlot1.
onPreClick((e, item
)->{ if(!item.
getType().
equals(Material.
LAPIS_LAZULI)){ player.
sendMessage("You cannot put items here except lapis lazuli."); returntrue; } returnfalse; }).
onPut(e
->{ enchantItem
(); });
}
/** * Purpose of this method, * remove one lapis from the 2. slot -if exist- * enchant item on 1. slot */ privatevoid enchantItem
(){ final Inventory inventory
= getInventory
();