{"repo":"MrMicky-FR/FastInv","free":true,"listed":false,"github":"https://github.com/MrMicky-FR/FastInv","clone":"git clone https://github.com/MrMicky-FR/FastInv.git","description":"Lightweight and easy-to-use inventory API for Bukkit plugins.","language":"Java","stars":142,"topics":["minecraft","bukkit","spigot","inventory","gui","api","menu"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"FastInv Lightweight and easy-to-use inventory API for Bukkit plugins. Features Lightweight (around 500 lines of code with the Javadoc) and no dependencies Compatible with all Minecraft versions starting with 1.7.10 Adventure components support Supports custom inventories (size, title and type) Built-in support for paginated inventories Easy to use Option to prevent a player from closing the inventory The Bukkit inventory can still be directly used Installation Maven Gradle Manual Simply copy FastInv.java and FastInvManager.java in your plugin. You can also add ItemBuilder.java if you need. Usage Register FastInv Before creating inventories, register your plugin by adding FastInvManager.register(this); in the onEnable() method of your plugin: Creating an inventory class Now you can create an inventory by creating a class that extends FastInv , and adding items in the constructor. You can also override onClick , onClose and onOpen if you need. Basic example inventory: The inventory can be opened with the open(player) method: Paginated inventory FastInv also supports paginated inventories, which can be created by using PaginatedFastInv instead of FastInv . Content can be added to the inventory using addContent or setContent , and pagination items can be added with previousPageItem and nextPageItem . You can also use onPageChange to execute code when the page changes, and the #currentPage() , #lastPage() , #isFirstPage() and #isLastPage() methods to get information about the curr","default_branch":null,"files":null,"tree":[],"storefront":"/r/MrMicky-FR","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MrMicky-FR/FastInv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}