PlaceStackRequestAction
extends ItemStackRequestAction
in package
Uses
GetTypeIdFromConstTrait, TakeOrPlaceStackRequestActionTrait
Puts some (or all) of the items from the source slot into the destination slot.
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::PLACE
- $count : int
- $destination : ItemStackRequestSlotInfo
- $source : ItemStackRequestSlotInfo
- __construct() : mixed
- getCount() : int
- getDestination() : ItemStackRequestSlotInfo
- getSource() : ItemStackRequestSlotInfo
- getTypeId() : int
- read() : self
- write() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::PLACE
Properties
$count
private
int
$count
$destination
private
ItemStackRequestSlotInfo
$destination
$source
private
ItemStackRequestSlotInfo
$source
Methods
__construct()
public
final __construct(int $count, ItemStackRequestSlotInfo $source, ItemStackRequestSlotInfo $destination) : mixed
Parameters
- $count : int
- $source : ItemStackRequestSlotInfo
- $destination : ItemStackRequestSlotInfo
Return values
mixed —getCount()
public
final getCount() : int
Return values
int —getDestination()
public
final getDestination() : ItemStackRequestSlotInfo
Return values
ItemStackRequestSlotInfo —getSource()
public
final getSource() : ItemStackRequestSlotInfo
Return values
ItemStackRequestSlotInfo —getTypeId()
public
abstract getTypeId() : int
Return values
int —read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Return values
self —write()
public
abstract write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer