Documentation

SwapStackRequestAction extends ItemStackRequestAction
in package
Uses GetTypeIdFromConstTrait

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

Table of Contents

ID  = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::SWAP
$slot1  : ItemStackRequestSlotInfo
$slot2  : ItemStackRequestSlotInfo
__construct()  : mixed
getSlot1()  : ItemStackRequestSlotInfo
getSlot2()  : ItemStackRequestSlotInfo
getTypeId()  : int
read()  : self
write()  : void

Constants

ID

public mixed ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::SWAP

Properties

Methods

Search results