DestroyStackRequestAction
extends ItemStackRequestAction
in package
Uses
DisappearStackRequestActionTrait, GetTypeIdFromConstTrait
Sends some (or all) items from the source slot to /dev/null. This happens when the player clicks items into the creative inventory menu in creative mode.
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::DESTROY
- $count : int
- $source : ItemStackRequestSlotInfo
- __construct() : mixed
- getCount() : int
- getSource() : ItemStackRequestSlotInfo
- getTypeId() : int
- read() : self
- write() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::DESTROY
Properties
$count
private
int
$count
$source
private
ItemStackRequestSlotInfo
$source
Methods
__construct()
public
final __construct(int $count, ItemStackRequestSlotInfo $source) : mixed
Parameters
- $count : int
- $source : ItemStackRequestSlotInfo
Return values
mixed —getCount()
public
final getCount() : int
Return values
int —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