PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
|
Public Member Functions | |
__construct (private ?CompoundTag $nbt, private array $canPlaceOn, private array $canDestroy) | |
getCanDestroy () | |
getCanPlaceOn () | |
getNbt () | |
write (PacketSerializer $out) | |
Static Public Member Functions | |
static | read (PacketSerializer $in) |
Wrapper class for extra data on ItemStacks. The data is normally provided as a raw string (not automatically decoded). This class is just a DTO for PacketSerializer to use when encoding/decoding ItemStacks.
Definition at line 31 of file ItemStackExtraData.php.
pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::__construct | ( | private ?CompoundTag | $nbt, |
private array | $canPlaceOn, | ||
private array | $canDestroy | ||
) |
string[] | $canPlaceOn | |
string[] | $canDestroy |
Definition at line 36 of file ItemStackExtraData.php.
pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::getCanDestroy | ( | ) |
Definition at line 52 of file ItemStackExtraData.php.
pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::getCanPlaceOn | ( | ) |
Definition at line 45 of file ItemStackExtraData.php.
pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::getNbt | ( | ) |
Definition at line 56 of file ItemStackExtraData.php.
|
static |
Definition at line 60 of file ItemStackExtraData.php.
pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::write | ( | PacketSerializer | $out | ) |
Definition at line 95 of file ItemStackExtraData.php.