populate missing array value types in item namespace

This commit is contained in:
Dylan K. Taylor 2020-01-30 20:54:38 +00:00
parent 4c36ca58e2
commit 3b9a5c5ccc
2 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,9 @@ class Item implements ItemIds, \JsonSerializable{
Item::$creative = [];
}
/**
* @return Item[]
*/
public static function getCreativeItems() : array{
return Item::$creative;
}

View File

@ -41,6 +41,9 @@ class EnchantmentEntry{
$this->randomName = $randomName;
}
/**
* @return Enchantment[]
*/
public function getEnchantments() : array{
return $this->enchantments;
}