PocketMine-MP 5.37.4 git-dbb3eefc44d5dddb20f540594fbda61467f50873
Loading...
Searching...
No Matches
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 (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Detailed Description

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

Definition at line 25 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 31 of file ItemStackExtraDataShield.php.

Member Function Documentation

◆ getBlockingTick()

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

Definition at line 40 of file ItemStackExtraDataShield.php.

◆ getCanDestroy()

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

Definition at line 55 of file ItemStackExtraData.php.

◆ getCanPlaceOn()

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

Definition at line 48 of file ItemStackExtraData.php.

◆ getNbt()

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

Definition at line 59 of file ItemStackExtraData.php.

◆ read()

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

◆ write()

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

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