PocketMine-MP 5.21.3 git-fcef015f32c0b0709cfd4d6f1b3c32f484b25bde
Loading...
Searching...
No Matches
pocketmine\data\bedrock\item\SavedItemStackData Class Reference
+ Collaboration diagram for pocketmine\data\bedrock\item\SavedItemStackData:

Public Member Functions

 __construct (private SavedItemData $typeData, private int $count, private ?int $slot, private ?bool $wasPickedUp, private array $canPlaceOn, private array $canDestroy)
 
 getCanDestroy ()
 
 getCanPlaceOn ()
 
 getCount ()
 
 getSlot ()
 
 getTypeData ()
 
 getWasPickedUp ()
 
 toNbt ()
 

Public Attributes

const TAG_CAN_DESTROY = "CanDestroy"
 
const TAG_CAN_PLACE_ON = "CanPlaceOn"
 
const TAG_COUNT = "Count"
 
const TAG_SLOT = "Slot"
 
const TAG_WAS_PICKED_UP = "WasPickedUp"
 

Detailed Description

Definition at line 33 of file SavedItemStackData.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\item\SavedItemStackData::__construct ( private SavedItemData $typeData,
private int $count,
private ?int $slot,
private ?bool $wasPickedUp,
private array $canPlaceOn,
private array $canDestroy )
Parameters
string[]$canPlaceOn
string[]$canDestroy

Definition at line 45 of file SavedItemStackData.php.

Member Function Documentation

◆ getCanDestroy()

pocketmine\data\bedrock\item\SavedItemStackData::getCanDestroy ( )
Returns
string[]

Definition at line 66 of file SavedItemStackData.php.

◆ getCanPlaceOn()

pocketmine\data\bedrock\item\SavedItemStackData::getCanPlaceOn ( )
Returns
string[]

Definition at line 63 of file SavedItemStackData.php.

◆ getCount()

pocketmine\data\bedrock\item\SavedItemStackData::getCount ( )

Definition at line 56 of file SavedItemStackData.php.

◆ getSlot()

pocketmine\data\bedrock\item\SavedItemStackData::getSlot ( )

Definition at line 58 of file SavedItemStackData.php.

◆ getTypeData()

pocketmine\data\bedrock\item\SavedItemStackData::getTypeData ( )

Definition at line 54 of file SavedItemStackData.php.

◆ getWasPickedUp()

pocketmine\data\bedrock\item\SavedItemStackData::getWasPickedUp ( )

Definition at line 60 of file SavedItemStackData.php.

◆ toNbt()

pocketmine\data\bedrock\item\SavedItemStackData::toNbt ( )

Definition at line 68 of file SavedItemStackData.php.

Member Data Documentation

◆ TAG_CAN_DESTROY

const pocketmine\data\bedrock\item\SavedItemStackData::TAG_CAN_DESTROY = "CanDestroy"

Definition at line 39 of file SavedItemStackData.php.

◆ TAG_CAN_PLACE_ON

const pocketmine\data\bedrock\item\SavedItemStackData::TAG_CAN_PLACE_ON = "CanPlaceOn"

Definition at line 38 of file SavedItemStackData.php.

◆ TAG_COUNT

const pocketmine\data\bedrock\item\SavedItemStackData::TAG_COUNT = "Count"

Definition at line 35 of file SavedItemStackData.php.

◆ TAG_SLOT

const pocketmine\data\bedrock\item\SavedItemStackData::TAG_SLOT = "Slot"

Definition at line 36 of file SavedItemStackData.php.

◆ TAG_WAS_PICKED_UP

const pocketmine\data\bedrock\item\SavedItemStackData::TAG_WAS_PICKED_UP = "WasPickedUp"

Definition at line 37 of file SavedItemStackData.php.


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