23 use GetTypeIdFromConstTrait;
24 use IntegerishMetadataProperty;
26 public const ID = EntityMetadataTypes::BYTE;
28 protected function min() :
int{
32 protected function max() :
int{
36 public static function read(ByteBufferReader $in) :
self{
37 return new self(Byte::readSigned($in));
40 public function write(ByteBufferWriter $out) :
void{
41 Byte::writeSigned($out, $this->value);