23 public function __construct(
24 private float $fadeInTime,
25 private float $stayTime,
26 private float $fadeOutTime
29 public function getFadeInTime() :
float{
return $this->fadeInTime; }
31 public function getStayTime() :
float{
return $this->stayTime; }
33 public function getFadeOutTime() :
float{
return $this->fadeOutTime; }
35 public static function read(ByteBufferReader $in) :
self{
36 $fadeInTime = LE::readFloat($in);
37 $stayTime = LE::readFloat($in);
38 $fadeOutTime = LE::readFloat($in);
39 return new self($fadeInTime, $stayTime, $fadeOutTime);
42 public function write(ByteBufferWriter $out) :
void{
43 LE::writeFloat($out, $this->fadeInTime);
44 LE::writeFloat($out, $this->stayTime);
45 LE::writeFloat($out, $this->fadeOutTime);