Item.pocketCompound

Gets the item's compound tag with the custom data of the item. It may be null if the item has no custom behaviours.

class Item
final pure nothrow @property @safe @nogc
Compound
pocketCompound
()

Examples

if(item.minecraftCompound is null) {
   assert(item.customName == "");
}
item.customName = "not empty";
assert(item.pocketCompound !is null);

Meta