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.

  1. Compound javaCompound [@property getter]
  2. Compound pocketCompound [@property getter]
    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