PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield:

Public Member Functions

 __construct (?CompoundTag $nbt, array $canPlaceOn, array $canDestroy, private int $blockingTick)
 
 getBlockingTick ()
 
 getCanDestroy ()
 
 getCanPlaceOn ()
 
 getNbt ()
 
 write (PacketSerializer $out)
 

Static Public Member Functions

static read (PacketSerializer $in)
 

Detailed Description

Extension of ItemStackExtraData for shield items, which have an additional field for the blocking tick.

Definition at line 23 of file ItemStackExtraDataShield.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield::__construct ( ?CompoundTag  $nbt,
array  $canPlaceOn,
array  $canDestroy,
private int  $blockingTick 
)
Parameters
string[]$canPlaceOn
string[]$canDestroy

Definition at line 29 of file ItemStackExtraDataShield.php.

Member Function Documentation

◆ getBlockingTick()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield::getBlockingTick ( )

Definition at line 38 of file ItemStackExtraDataShield.php.

◆ getCanDestroy()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::getCanDestroy ( )
inherited
Returns
string[]

Definition at line 52 of file ItemStackExtraData.php.

◆ getCanPlaceOn()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::getCanPlaceOn ( )
inherited
Returns
string[]

Definition at line 45 of file ItemStackExtraData.php.

◆ getNbt()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraData::getNbt ( )
inherited

Definition at line 56 of file ItemStackExtraData.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield::read ( PacketSerializer  $in)
static

◆ write()

pocketmine\network\mcpe\protocol\types\inventory\ItemStackExtraDataShield::write ( PacketSerializer  $out)

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