Inventory & UI
This system is used to create and handle custom user interfaces, including inventories, dialogs and user input.
When to use
- You want to create custom GUIs using inventories
- You want to interact with players through UI
- You need structured user input
Topics
- [[Custom Inventories|Core-API/Inventory-&-UI/Custom-Inventories]]
- [[InventoryUtil|Core-API/Inventory-&-UI/InventoryUtil]]
- [[Confirm Inventories|Core-API/Inventory-&-UI/Confirm-Inventories]]
- [[Quantity Inventory|Core-API/Inventory-&-UI/Quantity-Inventory]]
- [[Color Select Inventory|Core-API/Inventory-&-UI/Color-Select-Inventory]]
- [[Page Inventories|Core-API/Inventory-&-UI/Page-Inventories]]
- [[User Text Input|Core-API/Inventory-&-UI/User-Text-Input]]
Common pitfalls
- Using Bukkit inventories instead of the core system
- Mixing UI logic with game logic
- Not handling edge cases (closing inventory, invalid input)