PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\data\bedrock\item\SavedItemData Class Reference
+ Collaboration diagram for pocketmine\data\bedrock\item\SavedItemData:

Public Member Functions

 __construct (private string $name, private int $meta=0, private ?BlockStateData $block=null, private ?CompoundTag $tag=null)
 
 getBlock ()
 
 getMeta ()
 
 getName ()
 
 getTag ()
 
 toNbt ()
 

Public Attributes

const TAG_BLOCK = "Block"
 
const TAG_DAMAGE = "Damage"
 
const TAG_NAME = "Name"
 
const TAG_TAG = "tag"
 

Detailed Description

Definition at line 30 of file SavedItemData.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\item\SavedItemData::__construct ( private string $name,
private int $meta = 0,
private ?BlockStateData $block = null,
private ?CompoundTag $tag = null )

Definition at line 37 of file SavedItemData.php.

Member Function Documentation

◆ getBlock()

pocketmine\data\bedrock\item\SavedItemData::getBlock ( )

Definition at line 48 of file SavedItemData.php.

◆ getMeta()

pocketmine\data\bedrock\item\SavedItemData::getMeta ( )

Definition at line 46 of file SavedItemData.php.

◆ getName()

pocketmine\data\bedrock\item\SavedItemData::getName ( )

Definition at line 44 of file SavedItemData.php.

◆ getTag()

pocketmine\data\bedrock\item\SavedItemData::getTag ( )

Definition at line 50 of file SavedItemData.php.

◆ toNbt()

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

Definition at line 52 of file SavedItemData.php.

Member Data Documentation

◆ TAG_BLOCK

const pocketmine\data\bedrock\item\SavedItemData::TAG_BLOCK = "Block"

Definition at line 34 of file SavedItemData.php.

◆ TAG_DAMAGE

const pocketmine\data\bedrock\item\SavedItemData::TAG_DAMAGE = "Damage"

Definition at line 33 of file SavedItemData.php.

◆ TAG_NAME

const pocketmine\data\bedrock\item\SavedItemData::TAG_NAME = "Name"

Definition at line 32 of file SavedItemData.php.

◆ TAG_TAG

const pocketmine\data\bedrock\item\SavedItemData::TAG_TAG = "tag"

Definition at line 35 of file SavedItemData.php.


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