20 use GetTypeIdFromConstTrait;
22 public const ID = GameRuleType::FLOAT;
26 public function __construct(
float $value,
bool $isPlayerModifiable){
27 parent::__construct($isPlayerModifiable);
28 $this->value = $value;
31 public function getValue() :
float{
36 $out->putLFloat($this->value);
39 public static function decode(
PacketSerializer $in,
bool $isPlayerModifiable) :
self{
40 return new self($in->
getLFloat(), $isPlayerModifiable);