add more mixed[] to item namespace

This commit is contained in:
Dylan K. Taylor 2020-01-30 21:48:11 +00:00
parent 9eebfa7cc3
commit 5d8bb84269
2 changed files with 5 additions and 0 deletions

View File

@ -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)){

View File

@ -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 = "";