Item.parseJavaCompound

Parses a compound, usually received from the client or saved in a world. The tag should never be null as the method doesn't check it.

class Item
@safe
void
parseJavaCompound
(
Compound compound
)

Examples

item.parseMinecraftCompound(new Compound(new Compound("display", new String("Name", "custom"))));
assert(item.customName == "custom");

Meta