mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
add more mixed[] to item namespace
This commit is contained in:
parent
9eebfa7cc3
commit
5d8bb84269
@ -97,6 +97,8 @@ class Banner extends Item{
|
||||
|
||||
/**
|
||||
* Returns the data of a pattern with the given ID.
|
||||
*
|
||||
* @return mixed[]
|
||||
*/
|
||||
public function getPatternData(int $patternId) : array{
|
||||
if(!$this->patternExists($patternId)){
|
||||
|
@ -769,6 +769,8 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
|
||||
/**
|
||||
* Returns an array of item stack properties that can be serialized to json.
|
||||
*
|
||||
* @return mixed[]
|
||||
*/
|
||||
final public function jsonSerialize() : array{
|
||||
$data = [
|
||||
@ -792,6 +794,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
|
||||
/**
|
||||
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
|
||||
* @param mixed[] $data
|
||||
*/
|
||||
final public static function jsonDeserialize(array $data) : Item{
|
||||
$nbt = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user