mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 03:16:35 +00:00
Item: update documentation of legacyJsonDeserialize()
This commit is contained in:
parent
88a5a95479
commit
d40e864821
@ -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
|
* @param mixed[] $data
|
||||||
*
|
*
|
||||||
* @throws SavedDataLoadingException
|
* @throws SavedDataLoadingException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user