Answers for "minecraft plugin make inventory"

2

spigot how to make an inventory

Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");
Posted by: Guest on December-08-2020
1

bukkit creating an inventory window

IconMenu menu = new IconMenu("My Fancy Menu", 9, new IconMenu.OptionClickEventHandler() {
            @Override
            public void onOptionClick(IconMenu.OptionClickEvent event) {
                event.getPlayer().sendMessage("You have chosen " + event.getName());
                event.setWillClose(true);
            }
        }, plugin)
        .setOption(3, new ItemStack(Material.APPLE, 1), "Food", "The food is delicious")
        .setOption(4, new ItemStack(Material.IRON_SWORD, 1), "Weapon", "Weapons are for awesome people")
        .setOption(5, new ItemStack(Material.EMERALD, 1), "Money", "Money brings happiness");
Posted by: Guest on September-29-2020

Code answers related to "minecraft plugin make inventory"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language