13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::HURT_ARMOR_PACKET;
24 public int $armorSlotFlags;
29 public static function create(
int $cause,
int $health,
int $armorSlotFlags) : self{
31 $result->cause = $cause;
32 $result->health = $health;
33 $result->armorSlotFlags = $armorSlotFlags;
38 $this->cause = $in->getVarInt();
44 $out->putVarInt($this->cause);
50 return $handler->handleHurtArmor($this);
static create(int $cause, int $health, int $armorSlotFlags)
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
putUnsignedVarLong(int $v)