Skip to content

ItemStackData ​

final class · pocketmine\crafting\json\ItemStackData · source

Implements JsonSerializable

Properties ​

$block_states ​

php
public string $block_states

$can_destroy ​

php
public array $can_destroy

$can_place_on ​

php
public array $can_place_on

$count ​

php
public int $count

$meta ​

php
public int $meta

$name ​

php
public string $name

$nbt ​

php
public string $nbt

Methods ​

__construct() ​

php
public function __construct(string $name)

jsonSerialize() ​

php
public function jsonSerialize() : array|string

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