-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
git-Spigot-1a3504a-84f3da3 (MC: 1.13.2)
-
Yes
I would like to know if there is an existing way to open a working anvil. I tried p.openInventory(Bukkit.createInventory(null, InventoryType.ANVIL)) but the anvil doesn't work. I can't even get clicked items with InventoryClickEvent, or set items with p.getOpenInventory().getTopInventory().setItem(0, new ItemStack(Material.GUNPOWDER)).
It works with NMS but it makes cross-version management harder. I hope there is (or will be ) a proper way.
I saw that it was possible to open working workbenchs or enchant tables with p.openWorkbench and p.openEnchanting. Could it be possible to do the same for anvils ?