DropStackRequestAction
extends ItemStackRequestAction
in package
Uses
GetTypeIdFromConstTrait
Drops some (or all) items from the source slot into the world as an item entity.
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::DROP
- $count : int
- $randomly : bool
- $source : ItemStackRequestSlotInfo
- __construct() : mixed
- getCount() : int
- getSource() : ItemStackRequestSlotInfo
- getTypeId() : int
- isRandomly() : bool
- read() : self
- write() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::DROP
Properties
$count
private
int
$count
$randomly
private
bool
$randomly
$source
private
ItemStackRequestSlotInfo
$source
Methods
__construct()
public
__construct(int $count, ItemStackRequestSlotInfo $source, bool $randomly) : mixed
Parameters
- $count : int
- $source : ItemStackRequestSlotInfo
- $randomly : bool
Return values
mixed —getCount()
public
getCount() : int
Return values
int —getSource()
public
getSource() : ItemStackRequestSlotInfo
Return values
ItemStackRequestSlotInfo —getTypeId()
public
abstract getTypeId() : int
Return values
int —isRandomly()
public
isRandomly() : bool
Return values
bool —read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Return values
self —write()
public
write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer