25 use GetTypeIdFromConstTrait;
26 use IntegerishMetadataProperty;
28 public const ID = EntityMetadataTypes::LONG;
30 protected function min() :
int{
34 protected function max() :
int{
38 public static function read(ByteBufferReader $in) :
self{
39 return new self(VarInt::readSignedLong($in));
42 public function write(ByteBufferWriter $out) :
void{
43 VarInt::writeSignedLong($out, $this->value);