Item: update documentation of legacyJsonDeserialize()

This commit is contained in:
Dylan K. Taylor 2022-07-06 21:15:27 +01:00
parent 88a5a95479
commit d40e864821
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -585,9 +585,9 @@ class Item implements \JsonSerializable{
}
/**
* @deprecated This is intended for deserializing legacy data from the old crafting JSON and creative JSON data.
* Deserializes item JSON data produced by json_encode()ing Item instances in older versions of PocketMine-MP.
* This method exists solely to allow upgrading old JSON data stored by plugins.
*
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
* @param mixed[] $data
*
* @throws SavedDataLoadingException