mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Implemented new Inventory windows on Player, Chest and Furnace
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
namespace pocketmine\level\format\generic;
|
||||
|
||||
use pocketmine\level\format\Chunk;
|
||||
use pocketmine\level\format\ChunkSection;
|
||||
use pocketmine\level\Level;
|
||||
@ -34,9 +35,9 @@ abstract class BaseChunk implements Chunk{
|
||||
protected $z;
|
||||
|
||||
/**
|
||||
* @param Level $level
|
||||
* @param int $x
|
||||
* @param int $z
|
||||
* @param Level $level
|
||||
* @param int $x
|
||||
* @param int $z
|
||||
* @param ChunkSection[] $sections
|
||||
*/
|
||||
public function __construct(Level $level, $x, $z, array $sections){
|
||||
@ -48,11 +49,13 @@ abstract class BaseChunk implements Chunk{
|
||||
$this->sections[$Y] = $section;
|
||||
}else{
|
||||
trigger_error("Received invalid ChunkSection instance", E_USER_ERROR);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if($section >= self::SECTION_COUNT){
|
||||
trigger_error("Invalid amount of chunks", E_USER_WARNING);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
namespace pocketmine\level\format\generic;
|
||||
|
||||
use pocketmine\level\format\ChunkSection;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user