Simplified it and fixed, works like you said you wanted it to. Here's the whole class:
public class FurnaceListener implements Listener {
private static final ArrayList<BlockFace> faces = new ArrayList<>();
private static final short burntime = Short.MAX_VALUE;
static {...
I don't know if there's a better way but you can use tr7zw's item nbt api, create a new NBTItem with the itemstack you have and then use hasTag and setString, setInt etc. methods according to what you need.
An example in kotlin:
val item = ItemStack(Material.HOPPER)
val nbtitem = NBTItem(item)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.