mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-27 05:13:46 +00:00
SubChunk::__construct(): rename blocks to blockLayers
This commit is contained in:
parent
d894c5e97f
commit
54a773be0c
@ -32,22 +32,17 @@ class SubChunk{
|
|||||||
public const COORD_MASK = ~(~0 << self::COORD_BIT_SIZE);
|
public const COORD_MASK = ~(~0 << self::COORD_BIT_SIZE);
|
||||||
public const EDGE_LENGTH = 1 << self::COORD_BIT_SIZE;
|
public const EDGE_LENGTH = 1 << self::COORD_BIT_SIZE;
|
||||||
|
|
||||||
/** @var PalettedBlockArray[] */
|
|
||||||
private array $blockLayers;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SubChunk constructor.
|
* SubChunk constructor.
|
||||||
*
|
*
|
||||||
* @param PalettedBlockArray[] $blocks
|
* @param PalettedBlockArray[] $blockLayers
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private int $emptyBlockId,
|
private int $emptyBlockId,
|
||||||
array $blocks, //TODO: promote this once we can break BC again (needs a name change)
|
private array $blockLayers,
|
||||||
private ?LightArray $skyLight = null,
|
private ?LightArray $skyLight = null,
|
||||||
private ?LightArray $blockLight = null
|
private ?LightArray $blockLight = null
|
||||||
){
|
){}
|
||||||
$this->blockLayers = $blocks;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether this subchunk contains any non-air blocks.
|
* Returns whether this subchunk contains any non-air blocks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user