parse

Tries to parse ItemMetaPayload from the given input. Returns null if parsing failed or input is empty.

Input should be formatted in HOCON. Unknown fields are ignored.

{
name = "&6Item Name"
lore = [Line1, Line2]
unbreakable = true
damage = 42
custom-model-data = 1
flags = [hide_attributes, hide_dye]
enchantments = {unbreaking: 3}
}