13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::GAME_RULES_CHANGED_PACKET;
27 public array $gameRules = [];
34 public static function create(array $gameRules) : self{
36 $result->gameRules = $gameRules;
41 $this->gameRules = $in->getGameRules();
45 $out->putGameRules($this->gameRules);
49 return $handler->handleGameRulesChanged($this);
handle(PacketHandlerInterface $handler)
static create(array $gameRules)
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)