|
| static | decode (ByteBufferReader $in, int $height, int $width) |
| |
Definition at line 26 of file MapImage.php.
◆ __construct()
| pocketmine\network\mcpe\protocol\types\MapImage::__construct |
( |
array | $pixels | ) |
|
- Parameters
-
| Color[][] | $pixels | @phpstan-param list<list<Color>> $pixels |
Definition at line 44 of file MapImage.php.
◆ decode()
| static pocketmine\network\mcpe\protocol\types\MapImage::decode |
( |
ByteBufferReader | $in, |
|
|
int | $height, |
|
|
int | $width ) |
|
static |
- Exceptions
-
| PacketDecodeException | |
| DataDecodeException | |
Definition at line 96 of file MapImage.php.
◆ encode()
| pocketmine\network\mcpe\protocol\types\MapImage::encode |
( |
ByteBufferWriter | $out | ) |
|
◆ getHeight()
| pocketmine\network\mcpe\protocol\types\MapImage::getHeight |
( |
| ) |
|
◆ getPixels()
| pocketmine\network\mcpe\protocol\types\MapImage::getPixels |
( |
| ) |
|
- Returns
- Color[][] @phpstan-return list<list<Color>>
Definition at line 75 of file MapImage.php.
◆ getWidth()
| pocketmine\network\mcpe\protocol\types\MapImage::getWidth |
( |
| ) |
|
◆ MAX_HEIGHT
| const pocketmine\network\mcpe\protocol\types\MapImage::MAX_HEIGHT = 128 |
◆ MAX_WIDTH
| const pocketmine\network\mcpe\protocol\types\MapImage::MAX_WIDTH = 128 |
The documentation for this class was generated from the following file: