Skip to content

Commit e97b222

Browse files
committed
Add getter to PlayerArmorDamagePacket
1 parent 2851a2d commit e97b222

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/PlayerArmorDamagePacket.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public static function create(array $armorSlotAndDamagePairs) : self{
4040
return $result;
4141
}
4242

43+
/**
44+
* @return ArmorSlotAndDamagePair[]
45+
* @phpstan-return list<ArmorSlotAndDamagePair>
46+
*/
47+
public function getArmorSlotAndDamagePairs() : array{
48+
return $this->armorSlotAndDamagePairs;
49+
}
50+
4351
protected function decodePayload(ByteBufferReader $in) : void{
4452
for($i = 0, $count = VarInt::readUnsignedInt($in); $i < $count; ++$i){
4553
$this->armorSlotAndDamagePairs[] = ArmorSlotAndDamagePair::read($in);

0 commit comments

Comments
 (0)