39 public static function create(
bool $noAttackingMobs,
bool $noAttackingPlayers,
bool $worldImmutable,
bool $showNameTags,
bool $autoJump) : self{
41 $result->noAttackingMobs = $noAttackingMobs;
42 $result->noAttackingPlayers = $noAttackingPlayers;
43 $result->worldImmutable = $worldImmutable;
44 $result->showNameTags = $showNameTags;
45 $result->autoJump = $autoJump;
61 $this->noAttackingPlayers = CommonTypes::getBool($in);
62 $this->worldImmutable = CommonTypes::getBool($in);
63 $this->showNameTags = CommonTypes::getBool($in);
64 $this->autoJump = CommonTypes::getBool($in);
69 CommonTypes::putBool($out, $this->noAttackingPlayers);
70 CommonTypes::putBool($out, $this->worldImmutable);
71 CommonTypes::putBool($out, $this->showNameTags);
72 CommonTypes::putBool($out, $this->autoJump);