Skip to content

SavedItemData ​

final class · pocketmine\data\bedrock\item\SavedItemData · source

Constants ​

TAG_BLOCK ​

php
public const TAG_BLOCK = "Block"

TAG_DAMAGE ​

php
public const TAG_DAMAGE = "Damage"

TAG_NAME ​

php
public const TAG_NAME = "Name"

TAG_TAG ​

php
public const TAG_TAG = "tag"

Methods ​

__construct() ​

php
public function __construct(string $name, int $meta = 0, ?\pocketmine\data\bedrock\block\BlockStateData $block = null, ?\pocketmine\nbt\tag\CompoundTag $tag = null)

getBlock() ​

php
public function getBlock() : ?\pocketmine\data\bedrock\block\BlockStateData

getMeta() ​

php
public function getMeta() : int

getName() ​

php
public function getName() : string

getTag() ​

php
public function getTag() : ?\pocketmine\nbt\tag\CompoundTag

toNbt() ​

php
public function toNbt() : \pocketmine\nbt\tag\CompoundTag

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.