ItemStackResponse
in package
Table of Contents
- RESULT_ERROR = 1
- RESULT_OK = 0
- $containerInfos : array<string|int, mixed>
- $requestId : int
- $result : int
- __construct() : mixed
- getContainerInfos() : array<string|int, ItemStackResponseContainerInfo>
- getRequestId() : int
- getResult() : int
- read() : self
- write() : void
Constants
RESULT_ERROR
public
mixed
RESULT_ERROR
= 1
RESULT_OK
public
mixed
RESULT_OK
= 0
Properties
$containerInfos
private
array<string|int, mixed>
$containerInfos
$requestId
private
int
$requestId
$result
private
int
$result
Methods
__construct()
public
__construct(int $result, int $requestId, array<string|int, ItemStackResponseContainerInfo> $containerInfos) : mixed
Parameters
- $result : int
- $requestId : int
- $containerInfos : array<string|int, ItemStackResponseContainerInfo>
Return values
mixed —getContainerInfos()
public
getContainerInfos() : array<string|int, ItemStackResponseContainerInfo>
Return values
array<string|int, ItemStackResponseContainerInfo> —getRequestId()
public
getRequestId() : int
Return values
int —getResult()
public
getResult() : int
Return values
int —read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Return values
self —write()
public
write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer