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
for make a static inventory
#Screenshots (but not of code examples in thread)
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)
Last edited:
