BananaPuncher714 / NBTEditor

A single class NBT editor for items, skulls, mobs, and tile entities
MIT License
136 stars 30 forks source link

Add boolean support with bytes. #9

Closed portlek closed 4 years ago

portlek commented 4 years ago

It allows that;

final NBTEditor.NBTCompound nbtCompound = NBTEditor.getNBTCompound(itemStack);
nbtCompound.set(true, "tag", "unmodifiable");
final ItemStack finalItem = NBTEditor.getItemFromTag(nbtCompound);
final boolean ismodifiable = NBTEditor.getBoolean(finalItem, "tag", "unmodifiable");
return finalItem;