Creates an empty ItemExtraData instance.
Creates a copy of current ItemExtraData instance with the same contents.
Optional
extraData: ItemExtraDataCreates an ItemExtraData Java object instance from given native item extra data object pointer, represented as 64-bit integer (long).
Adds a new enchantment to the item.
enchantment ID, one of the EEnchantment constants
enchantment level, generally between 1 and 5
Creates a copy of current ItemExtraData object.
A created copy of the data.
parameter name
Optional
fallback: booleandefault value to be returned if item extra data doesn't contain a parameter with specified name
Custom boolean parameter value if extra data of the item contains
one, fallback value otherwise. If fallback was not specified, null
is returned.
Compound tag for the specified item.
enchantment ID, one of the EEnchantment constants
Level of the specified enchantment.
enchantment ID, one of the EEnchantment constants
enchantment level, generally between 1 and 5
Enchantment name by it's ID and level.
parameter name
Optional
fallback: numberdefault value to be returned if item extra data doesn't contain a parameter with specified name
Custom float parameter value if extra data of the item contains
one, fallback value otherwise. If fallback was not specified, null
is returned.
parameter name
Optional
fallback: numberdefault value to be returned if item extra data doesn't contain a parameter with specified name
Custom integer parameter value if extra data of the item contains
one, fallback value otherwise. If fallback was not specified, null
is returned.
parameter name
Optional
fallback: numberdefault value to be returned if item extra data doesn't contain a parameter with specified name
Custom long integer parameter value if extra data of the item contains
one, fallback value otherwise. If fallback was not specified, null
is returned.
parameter name
Optional
fallback: stringdefault value to be returned if item extra data doesn't contain a parameter with specified name
Custom string parameter value if extra data of the item contains
one, fallback value otherwise. If fallback was not specified, null
is returned.
Puts some custom boolean parameter to the extra data of the item.
parameter name
parameter value
Reference to itself to be used in sequential calls.
Puts some custom floating point number parameter to the extra data of the item.
parameter name
parameter value
Reference to itself to be used in sequential calls.
Puts some custom integer parameter to the extra data of the item.
parameter name
parameter value
Reference to itself to be used in sequential calls.
Puts some custom long integer parameter to the extra data of the item.
parameter name
parameter value
Reference to itself to be used in sequential calls.
Reference to itself to be used in sequential calls.
Reference to itself to be used in sequential calls.
Puts some custom string parameter to the extra data of the item.
parameter name
parameter value
Reference to itself to be used in sequential calls.
Removes enchantments by it's ID.
enchantment ID, one of the EEnchantment constants
Sets compound tag for the specified item.
Static
cloneStatic
fromStatic
getStatic
getStatic
unwrapStatic
unwrapCopyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Class representing item extra data. Used to store additional information about item other then just item ID and data.