mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Merge commit '4ff4434a220813e446efde4a38e48a0416476dba'
# Conflicts: # resources/vanilla # src/pocketmine/item/Banner.php # src/pocketmine/item/Item.php
This commit is contained in:
commit
96ac95798b
@ -41,7 +41,7 @@ function preg_quote_array(array $strings, string $delim = null) : array{
|
||||
* @param string $pharPath
|
||||
* @param string $basePath
|
||||
* @param string[] $includedPaths
|
||||
* @param array $metadata
|
||||
* @param mixed[] $metadata
|
||||
* @param string $stub
|
||||
* @param int $signatureAlgo
|
||||
* @param int|null $compression
|
||||
|
@ -573,6 +573,8 @@ class Item implements \JsonSerializable{
|
||||
|
||||
/**
|
||||
* Returns an array of item stack properties that can be serialized to json.
|
||||
*
|
||||
* @return mixed[]
|
||||
*/
|
||||
final public function jsonSerialize() : array{
|
||||
$data = [
|
||||
@ -596,6 +598,7 @@ class Item implements \JsonSerializable{
|
||||
|
||||
/**
|
||||
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
|
||||
* @param mixed[] $data
|
||||
*
|
||||
* @throws NbtDataException
|
||||
* @throws \InvalidArgumentException
|
||||
|
Loading…
x
Reference in New Issue
Block a user