|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Collaboration diagram for pocketmine\world\format\SubChunk:Public Member Functions | |
| __construct (private int $emptyBlockId, private ?PalettedBlockArray $blockLayer0, private ?PalettedBlockArray $blockLayer1, private PalettedBlockArray $biomes, private ?LightArray $skyLight=null, private ?LightArray $blockLight=null) | |
| __clone () | |
| __debugInfo () | |
| collectGarbage () | |
| getBiomeArray () | |
| getBlockLayer0 () | |
| getBlockLayer1 () | |
| getBlockLayers () | |
| getBlockLightArray () | |
| getBlockSkyLightArray () | |
| getBlockStateId (int $x, int $y, int $z) | |
| getEmptyBlockId () | |
| getHighestBlockAt (int $x, int $z) | |
| isEmptyAuthoritative () | |
| isEmptyFast () | |
| setBlockLightArray (LightArray $data) | |
| setBlockSkyLightArray (LightArray $data) | |
| setBlockStateId (int $x, int $y, int $z, int $block) | |
Public Attributes | |
| const | COORD_BIT_SIZE = 4 |
| const | COORD_MASK = ~(~0 << self::COORD_BIT_SIZE) |
| const | EDGE_LENGTH = 1 << self::COORD_BIT_SIZE |
Definition at line 26 of file SubChunk.php.
| pocketmine\world\format\SubChunk::__construct | ( | private int | $emptyBlockId, |
| private ?PalettedBlockArray | $blockLayer0, | ||
| private ?PalettedBlockArray | $blockLayer1, | ||
| private PalettedBlockArray | $biomes, | ||
| private ?LightArray | $skyLight = null, | ||
| private ?LightArray | $blockLight = null ) |
SubChunk constructor.
Definition at line 34 of file SubChunk.php.
| pocketmine\world\format\SubChunk::__clone | ( | ) |
Definition at line 164 of file SubChunk.php.
| pocketmine\world\format\SubChunk::__debugInfo | ( | ) |
Definition at line 135 of file SubChunk.php.
| pocketmine\world\format\SubChunk::collectGarbage | ( | ) |
Definition at line 147 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBiomeArray | ( | ) |
Definition at line 114 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBlockLayer0 | ( | ) |
Definition at line 78 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBlockLayer1 | ( | ) |
Definition at line 82 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBlockLayers | ( | ) |
Definition at line 90 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBlockLightArray | ( | ) |
Definition at line 124 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBlockSkyLightArray | ( | ) |
Definition at line 116 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getBlockStateId | ( | int | $x, |
| int | $y, | ||
| int | $z ) |
Definition at line 67 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getEmptyBlockId | ( | ) |
Returns the block used as the default. This is assumed to refer to air. If all the blocks in a subchunk layer are equal to this block, the layer is assumed to be empty.
Definition at line 65 of file SubChunk.php.
| pocketmine\world\format\SubChunk::getHighestBlockAt | ( | int | $x, |
| int | $z ) |
Definition at line 101 of file SubChunk.php.
| pocketmine\world\format\SubChunk::isEmptyAuthoritative | ( | ) |
Returns whether this subchunk contains any non-air blocks. This function will do a slow check, usually by garbage collecting first. This is typically useful for disk saving.
Definition at line 48 of file SubChunk.php.
| pocketmine\world\format\SubChunk::isEmptyFast | ( | ) |
Returns a non-authoritative bool to indicate whether the chunk contains any blocks. This may report non-empty erroneously if the chunk has been modified and not garbage-collected.
Definition at line 57 of file SubChunk.php.
| pocketmine\world\format\SubChunk::setBlockLightArray | ( | LightArray | $data | ) |
Definition at line 128 of file SubChunk.php.
| pocketmine\world\format\SubChunk::setBlockSkyLightArray | ( | LightArray | $data | ) |
Definition at line 120 of file SubChunk.php.
| pocketmine\world\format\SubChunk::setBlockStateId | ( | int | $x, |
| int | $y, | ||
| int | $z, | ||
| int | $block ) |
Definition at line 71 of file SubChunk.php.
| const pocketmine\world\format\SubChunk::COORD_BIT_SIZE = 4 |
Definition at line 27 of file SubChunk.php.
| const pocketmine\world\format\SubChunk::COORD_MASK = ~(~0 << self::COORD_BIT_SIZE) |
Definition at line 28 of file SubChunk.php.
| const pocketmine\world\format\SubChunk::EDGE_LENGTH = 1 << self::COORD_BIT_SIZE |
Definition at line 29 of file SubChunk.php.