Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.52 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.52 KB

SimpleItemLib

License: GPL v3 Discord

The Simple Item Lib is a Library wich allows to easily add eventlistener by a Consumer to the ItemStack ( Items are identified by 64char random string set in ItemMeta ) or you can set your own custom keys when using static Items

Example

        SimpleItemBuilder builder = new SimpleItemBuilder(Material.IRON_AXE);
        builder.addItemFlag(ItemFlag.HIDE_ATTRIBUTES);
        builder.setClickHandler(event -> {
           event.getWhoClicked().sendMessage("You have clicked the Item"); 
        });
        SimpleItemStack itemStack = builder.build();

Other Links: