mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +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.
|
* Returns the data of a pattern with the given ID.
|
||||||
|
*
|
||||||
|
* @return mixed[]
|
||||||
*/
|
*/
|
||||||
public function getPatternData(int $patternId) : array{
|
public function getPatternData(int $patternId) : array{
|
||||||
if(!$this->patternExists($patternId)){
|
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.
|
* Returns an array of item stack properties that can be serialized to json.
|
||||||
|
*
|
||||||
|
* @return mixed[]
|
||||||
*/
|
*/
|
||||||
final public function jsonSerialize() : array{
|
final public function jsonSerialize() : array{
|
||||||
$data = [
|
$data = [
|
||||||
@ -792,6 +794,7 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
|
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
|
||||||
|
* @param mixed[] $data
|
||||||
*/
|
*/
|
||||||
final public static function jsonDeserialize(array $data) : Item{
|
final public static function jsonDeserialize(array $data) : Item{
|
||||||
$nbt = "";
|
$nbt = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user