13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol\types\inventory\stackrequest;
18use pocketmine\network\mcpe\protocol\types\GetTypeIdFromConstTrait;
24 use GetTypeIdFromConstTrait;
26 public const ID = ItemStackRequestActionType::BEACON_PAYMENT;
28 public function __construct(
29 private int $primaryEffectId,
30 private int $secondaryEffectId
33 public function getPrimaryEffectId() :
int{
return $this->primaryEffectId; }
35 public function getSecondaryEffectId() :
int{
return $this->secondaryEffectId; }
40 return new self($primary, $secondary);
45 $out->
putVarInt($this->secondaryEffectId);