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

Public Member Functions

 __construct (private int $count, private ItemStackRequestSlotInfo $source, private bool $randomly)
 
 getCount ()
 
 getSource ()
 
 getTypeId ()
 
 isRandomly ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Public Attributes

const ID = ItemStackRequestActionType::DROP
 

Detailed Description

Drops some (or all) items from the source slot into the world as an item entity.

Definition at line 26 of file DropStackRequestAction.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::__construct ( private int $count,
private ItemStackRequestSlotInfo $source,
private bool $randomly )

Definition at line 31 of file DropStackRequestAction.php.

Member Function Documentation

◆ getCount()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::getCount ( )

Definition at line 37 of file DropStackRequestAction.php.

◆ getSource()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::getSource ( )

Definition at line 39 of file DropStackRequestAction.php.

◆ isRandomly()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::isRandomly ( )

Definition at line 41 of file DropStackRequestAction.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::read ( ByteBufferReader $in)
static

Definition at line 43 of file DropStackRequestAction.php.

◆ write()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::write ( ByteBufferWriter $out)

Member Data Documentation

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\stackrequest\DropStackRequestAction::ID = ItemStackRequestActionType::DROP

Definition at line 29 of file DropStackRequestAction.php.


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