23 public function __construct(
24 private string $experienceName,
25 private string $worldName,
28 public function getExperienceName() :
string{
return $this->experienceName; }
30 public function getWorldName() :
string{
return $this->worldName; }
32 public static function read(ByteBufferReader $in) :
self{
33 $experienceName = CommonTypes::getString($in);
34 $worldName = CommonTypes::getString($in);
42 public function write(ByteBufferWriter $out) :
void{
43 CommonTypes::putString($out, $this->experienceName);
44 CommonTypes::putString($out, $this->worldName);