20 use GetTypeIdFromConstTrait;
22 public const ID = GameRuleType::INT;
26 public function __construct(
int $value,
bool $isPlayerModifiable){
27 parent::__construct($isPlayerModifiable);
28 $this->value = $value;
31 public function getValue() :
int{
39 public static function decode(
PacketSerializer $in,
bool $isPlayerModifiable) :
self{