项目作者: MinusKube

项目描述 :
Advanced Inventory API for your Minecraft Bukkit plugins.
高级语言: Java
项目地址: git://github.com/MinusKube/SmartInvs.git
创建时间: 2017-06-20T18:50:36Z
项目社区:https://github.com/MinusKube/SmartInvs

开源协议:Apache License 2.0

下载


SmartInvs Logo

License
Javadocs

SmartInvs

Advanced Inventory API for your Minecraft Bukkit plugins.

Tested Minecraft versions: 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14
You can use this as a Plugin, or use it as a library (see the docs)

Features

  • Inventories of any type (workbench, chest, furnace, …)
  • Customizable size when possible (chest, …)
  • Custom titles
  • Allows to prevent the player from closing its inventory
  • Custom listeners for the event related to the inventory
  • Iterator for inventory slots
  • Page system
  • Util methods to fill an inventory’s row/column/borders/…
  • Actions when player clicks on an item
  • Update methods to edit the content of the inventory every tick

Docs

Click here to read the docs on Gitbook

Usage

To use the SmartInvs API, either:

  • Put it in the plugins folder of your server, add it to your dependencies in your plugin.yml (e.g. depend: [SmartInvs]) and add it to the dependencies in your IDE.
  • Put it inside your plugin jar, initialize an InventoryManager in your plugin (don’t forget to call the init() method), and add a .manager(invManager) to your SmartInventory Builders.

You can download the latest version on the Releases page on Github.

You can also use a build system:

Gradle

  1. repositories {
  2. mavenCentral()
  3. }
  4. dependencies {
  5. compile 'fr.minuskube.inv:smart-invs:1.2.7'
  6. }

Maven

  1. <dependency>
  2. <groupId>fr.minuskube.inv</groupId>
  3. <artifactId>smart-invs</artifactId>
  4. <version>1.2.7</version>
  5. </dependency>

TODO

  • Add some Javadocs

Issues

If you have a problem with the API, or you want to request a feature, make an issue here.