mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Added Inventory interfaces and types, updated long array() to []
This commit is contained in:
@ -62,7 +62,7 @@ trait Container{
|
||||
$pk->y = $this->y;
|
||||
$pk->z = $this->z;
|
||||
$player->dataPacket($pk);
|
||||
$slots = array();
|
||||
$slots = [];
|
||||
|
||||
if(is_array($player->windows[$id])){
|
||||
$all = $this->getLevel()->getPlayers();
|
||||
@ -121,7 +121,7 @@ trait Container{
|
||||
$pk->z = $this->z;
|
||||
$player->dataPacket($pk);
|
||||
|
||||
$slots = array();
|
||||
$slots = [];
|
||||
for($s = 0; $s < Furnace::SLOTS; ++$s){
|
||||
$slot = $this->getSlot($s);
|
||||
if($slot->getID() > Item::AIR and $slot->getCount() > 0){
|
||||
|
@ -41,12 +41,12 @@ abstract class Tile extends Position{
|
||||
/**
|
||||
* @var Tile[]
|
||||
*/
|
||||
public static $list = array();
|
||||
public static $list = [];
|
||||
|
||||
/**
|
||||
* @var Tile[]
|
||||
*/
|
||||
public static $needUpdate = array();
|
||||
public static $needUpdate = [];
|
||||
|
||||
public $chunkIndex;
|
||||
public $name;
|
||||
|
Reference in New Issue
Block a user