PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse:

Public Member Functions

 __construct (private int $result, private int $requestId, private array $containerInfos=[])
 
 getContainerInfos ()
 
 getRequestId ()
 
 getResult ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Public Attributes

const RESULT_ERROR = 1
 
const RESULT_OK = 0
 

Detailed Description

Definition at line 24 of file ItemStackResponse.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::__construct ( private int $result,
private int $requestId,
private array $containerInfos = [] )
Parameters
ItemStackResponseContainerInfo[]$containerInfos

Definition at line 34 of file ItemStackResponse.php.

Member Function Documentation

◆ getContainerInfos()

pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::getContainerInfos ( )
Returns
ItemStackResponseContainerInfo[]

Definition at line 49 of file ItemStackResponse.php.

◆ getRequestId()

pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::getRequestId ( )

Definition at line 46 of file ItemStackResponse.php.

◆ getResult()

pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::getResult ( )

Definition at line 44 of file ItemStackResponse.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::read ( ByteBufferReader $in)
static

Definition at line 51 of file ItemStackResponse.php.

◆ write()

pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::write ( ByteBufferWriter $out)

Definition at line 63 of file ItemStackResponse.php.

Member Data Documentation

◆ RESULT_ERROR

const pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::RESULT_ERROR = 1

Definition at line 27 of file ItemStackResponse.php.

◆ RESULT_OK

const pocketmine\network\mcpe\protocol\types\inventory\stackresponse\ItemStackResponse::RESULT_OK = 0

Definition at line 26 of file ItemStackResponse.php.


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