Name | <ItemTag.components_patch> |
Returns | MapTag |
Mechanism | ItemTag.components_patch |
Description | (Property) Returns the item's internal component patch. That is, the changes in components on top of the item type's default components.
The map is in Raw NBT Encoding format. This is mainly intended for item data persistence, and scripts should prefer using proper item properties instead of setting raw data directly. If you're trying to control custom data (such as data set by other plugins), use ItemTag.custom_data. Note that this is just data that isn't already controlled by other ItemTag properties, see ItemTag.full_components_patch for the complete component patch. |
Generated Example |
|
Group | Properties |
Warning(s) | Due to this being a direct representation of internal data, compatibility for script usage across versions is not guaranteed. |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemComponentsPatch.java#L21 |