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);