PocketMine-MP 5.44.4 git-bc94a0da0c87abe7eb99d229a9ec672b3c405d11
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper:

Public Member Functions

 __construct (private int $stackId, private ItemStack $itemStack, private int $stackIdVariant=0)
 
 getItemStack ()
 
 getStackId ()
 
 getStackIdVariant ()
 

Static Public Member Functions

static legacy (ItemStack $itemStack)
 

Detailed Description

Definition at line 17 of file ItemStackWrapper.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper::__construct ( private int $stackId,
private ItemStack $itemStack,
private int $stackIdVariant = 0 )

Definition at line 18 of file ItemStackWrapper.php.

Member Function Documentation

◆ getItemStack()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper::getItemStack ( )

Definition at line 32 of file ItemStackWrapper.php.

◆ getStackId()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper::getStackId ( )

Definition at line 28 of file ItemStackWrapper.php.

◆ getStackIdVariant()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper::getStackIdVariant ( )

Definition at line 30 of file ItemStackWrapper.php.

◆ legacy()

static pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper::legacy ( ItemStack $itemStack)
static

Definition at line 24 of file ItemStackWrapper.php.


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