EpicBanItemTeam / VirtualChest

A sponge plugin providing virtual chest GUIs for menus like ChestCommands
https://ore.spongepowered.org/zzzz/VirtualChest
GNU Lesser General Public License v3.0
34 stars 12 forks source link

Developer API #89

Open NeumimTo opened 5 years ago

NeumimTo commented 5 years ago

Im very dissapointed in the Sponge Inventory API, since its abstraction does more harm than good.

Im thinking about abandoning the Sponge Inventory API an using Virtual Chest for my menu inventory menu.

https://github.com/Sponge-RPG-dev/NT-RPG

Could you post an example how to use VirtualChest API ?

ustc-zzzz commented 5 years ago

There is currently no such api which could provide convenience on the creation of menus. The api itself only provides a functional interface whose input is an identifier string and a player and whose output is a sponge Inventory.

Adding an api providing convenience on the creation of menus seems to be a good idea and may also be welcomed, but it is a work which may take a long time since VirtualChest itself has a relatively large code base, so the new api I am working on now is focused on how to make other plugins cooperate better with VirtualChest (which is also easier to design and implement), and the priority of the api you want is lower.