PocketMine-MP 5.39.3 git-400eb2dddf91a9c112aa09f3b498ffc8c85e98ed
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\MapImage Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\MapImage:

Public Member Functions

 __construct (array $pixels)
 
 encode (ByteBufferWriter $out)
 
 getHeight ()
 
 getPixels ()
 
 getWidth ()
 

Static Public Member Functions

static decode (ByteBufferReader $in, int $height, int $width)
 

Public Attributes

const MAX_HEIGHT = 128
 
const MAX_WIDTH = 128
 

Detailed Description

Definition at line 26 of file MapImage.php.

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ 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)

Definition at line 77 of file MapImage.php.

◆ getHeight()

pocketmine\network\mcpe\protocol\types\MapImage::getHeight ( )

Definition at line 69 of file MapImage.php.

◆ 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 ( )

Definition at line 67 of file MapImage.php.

Member Data Documentation

◆ MAX_HEIGHT

const pocketmine\network\mcpe\protocol\types\MapImage::MAX_HEIGHT = 128

Definition at line 28 of file MapImage.php.

◆ MAX_WIDTH

const pocketmine\network\mcpe\protocol\types\MapImage::MAX_WIDTH = 128

Definition at line 29 of file MapImage.php.


The documentation for this class was generated from the following file: