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

Public Member Functions

 __construct (private ItemStackRequestSlotInfo $slot1, private ItemStackRequestSlotInfo $slot2)
 
 getSlot1 ()
 
 getSlot2 ()
 
 getTypeId ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Public Attributes

const ID = ItemStackRequestActionType::SWAP
 

Detailed Description

Swaps two stacks. These don't have to be in the same inventory. This action does not modify the stacks themselves.

Definition at line 24 of file SwapStackRequestAction.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\SwapStackRequestAction::__construct ( private ItemStackRequestSlotInfo $slot1,
private ItemStackRequestSlotInfo $slot2 )

Definition at line 29 of file SwapStackRequestAction.php.

Member Function Documentation

◆ getSlot1()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\SwapStackRequestAction::getSlot1 ( )

Definition at line 34 of file SwapStackRequestAction.php.

◆ getSlot2()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\SwapStackRequestAction::getSlot2 ( )

Definition at line 36 of file SwapStackRequestAction.php.

◆ read()

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

Definition at line 38 of file SwapStackRequestAction.php.

◆ write()

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

Member Data Documentation

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\stackrequest\SwapStackRequestAction::ID = ItemStackRequestActionType::SWAP

Definition at line 27 of file SwapStackRequestAction.php.


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