24 public function __construct(
25 private UuidInterface $experienceId,
26 private string $experienceName,
27 private UuidInterface $experienceWorldId,
28 private string $experienceWorldName,
29 private string $creatorId,
30 private UuidInterface $targetId,
31 private string $scenarioId,
32 private string $serverId,
35 public function getExperienceId() : UuidInterface{
return $this->experienceId; }
37 public function getExperienceName() :
string{
return $this->experienceName; }
39 public function getExperienceWorldId() : UuidInterface{
return $this->experienceWorldId; }
41 public function getExperienceWorldName() :
string{
return $this->experienceWorldName; }
43 public function getCreatorId() :
string{
return $this->creatorId; }
45 public function getTargetId() : UuidInterface{
return $this->targetId; }
47 public function getScenarioId() :
string{
return $this->scenarioId; }
49 public function getServerId() :
string{
return $this->serverId; }
51 public static function read(ByteBufferReader $in) :
self{
52 $experienceId = CommonTypes::getUUID($in);
53 $experienceName = CommonTypes::getString($in);
54 $experienceWorldId = CommonTypes::getUUID($in);
55 $experienceWorldName = CommonTypes::getString($in);
56 $creatorId = CommonTypes::getString($in);
57 $targetId = CommonTypes::getUUID($in);
58 $scenarioId = CommonTypes::getString($in);
59 $serverId = CommonTypes::getString($in);
73 public function write(ByteBufferWriter $out) :
void{
74 CommonTypes::putUUID($out, $this->experienceId);
75 CommonTypes::putString($out, $this->experienceName);
76 CommonTypes::putUUID($out, $this->experienceWorldId);
77 CommonTypes::putString($out, $this->experienceWorldName);
78 CommonTypes::putString($out, $this->creatorId);
79 CommonTypes::putUUID($out, $this->targetId);
80 CommonTypes::putString($out, $this->scenarioId);
81 CommonTypes::putString($out, $this->serverId);