[Free] Annotation Inventory Framework | Make inventories easily | Easy to use

Status
This thread has been locked.

Shiryu

Feedback score
2
Posts
15
Reactions
6
Resources
0
Hello MC-Market, I'm here to present you my new inventory framework. This API helps you to make custom bukkit inventories easily with annotations and you can get something from your own configuration files. Examples can be found in github link.

Github: https://github.com/ShiryuDev/inventory

# Code Examples

for make an inventory from configuration

Code:
    @ConfigStorage(name = "test.yml", path = "/inventories/")
    @ConfigLink(linkTypes = {ConfigLinkType.TITLE, ConfigLinkType.ROW})
    public class InventoryTest implements InventoryManaged {

        @Button(id = "test")
        @ConfigLink(linkTypes = {ConfigLinkType.BUTTON})
        public void onClick(final BukkitInventoryClickEvent event){
            event.getPlayer().sendMessage("hi");
        }
    }

for make a static inventory

Code:
  @Title(title = "test")
  @Size(size = 1)
  public class InventoryTest implements InventoryManaged {

      @Button(id = "test")
      @ButtonData(
              name = "test button",
              lore = "line1/line2",
              material = "PAPER",
              x = 1,
              y = 1
      )
      public void onClick(final BukkitInventoryClickEvent event){
          event.getPlayer().sendMessage("hi");
      }
  }

#Screenshots (but not of code examples in thread)

L7IxLf.png

Q0K04f.png
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Taner

Ultimate
Feedback score
0
Posts
2
Reactions
0
Resources
3
It seems like a useful API for making Bukkit Inventories
 

PTech

Feedback score
6
Posts
422
Reactions
261
Resources
0
And if I want to surround the inventory with panes? This seems massively over-engineered for a menu library.
 

kev626

Feedback score
2
Posts
223
Reactions
143
Resources
0
This looks like a massive pain in the ass. So many other simpler and better ways of accomplishing the exact same thing.

What if I want the button text to update, for example? Annotations are great for some things but they suck when overused and half your code is annotation.
 

Shiryu

Feedback score
2
Posts
15
Reactions
6
Resources
0
This looks like a massive pain in the ass. So many other simpler and better ways of accomplishing the exact same thing.

What if I want the button text to update, for example? Annotations are great for some things but they suck when overused and half your code is annotation.
You can make inventories from configuration files so just change the name in configuration and load the inventory again xd
 

Shiryu

Feedback score
2
Posts
15
Reactions
6
Resources
0
Not my question. What if you want to have an item have a dynamic name? And the answer is you can’t because they’re only defined in config files and annotations.
I will add a method to update inventory for you then
 

Shiryu

Feedback score
2
Posts
15
Reactions
6
Resources
0
Added: Loop and SlotIterator annotations, inventory update after runtime
 

mxnny

Premium
Feedback score
4
Posts
205
Reactions
69
Resources
0
Seems like a really cool concept but kinda useless, never seen before this is cool.
 

RiznSun

Full-Stack Software Developer
Supreme
Feedback score
11
Posts
234
Reactions
125
Resources
0
A builder class would be more useful than using annotations. Just my two cents though, I still think this is a cool project.
 
Status
This thread has been locked.
Top