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.

  1. void parseJavaCompound(Compound compound)
    class Item
    @safe
    void
    parseJavaCompound
    (
    Compound compound
    )
  2. void parseBedrockCompound(Compound compound)

Examples

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

Meta