Item.javaCompound

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]
    class Item
    final pure nothrow @property @safe @nogc
    Compound
    javaCompound
    ()
  2. Compound pocketCompound [@property getter]

Examples

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

Meta