Added Inventory interfaces and types, updated long array() to []

This commit is contained in:
Shoghi Cervantes
2014-05-22 18:59:16 +02:00
parent 0be679c9d5
commit 6cbd39de9b
102 changed files with 637 additions and 334 deletions

View File

@ -359,7 +359,7 @@ class Item{
/** @var Item[] */
public static $list = array();
public static $list = [];
protected $block;
protected $id;
protected $meta;
@ -447,7 +447,7 @@ class Item{
public static function fromString($str, $multiple = false){
if($multiple === true){
$blocks = array();
$blocks = [];
foreach(explode(",", $str) as $b){
$blocks[] = self::fromString($b, false);
}