PocketMine-MP
5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
AdvertiseSystem.php
1
<?php
2
3
/*
4
* This file is part of RakLib.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/RakLib>
6
*
7
* RakLib is not affiliated with Jenkins Software LLC nor RakNet.
8
*
9
* RakLib is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*/
14
15
declare(strict_types=1);
16
17
namespace
raklib\protocol;
18
19
class
AdvertiseSystem
extends
Packet
{
20
public
static
$ID =
MessageIdentifiers::ID_ADVERTISE_SYSTEM
;
21
22
public
string
$serverName;
23
24
protected
function
encodePayload(
PacketSerializer
$out) :
void
{
25
$out->putString($this->serverName);
26
}
27
28
protected
function
decodePayload
(
PacketSerializer
$in) : void{
29
$this->serverName = $in->getString();
30
}
31
}
raklib\protocol\AdvertiseSystem
Definition
AdvertiseSystem.php:19
raklib\protocol\AdvertiseSystem\decodePayload
decodePayload(PacketSerializer $in)
Definition
AdvertiseSystem.php:28
raklib\protocol\Packet
Definition
raklib/src/protocol/Packet.php:21
raklib\protocol\PacketSerializer
Definition
raklib/src/protocol/PacketSerializer.php:30
raklib\protocol\MessageIdentifiers\ID_ADVERTISE_SYSTEM
const ID_ADVERTISE_SYSTEM
Definition
MessageIdentifiers.php:114
vendor
pocketmine
raklib
src
protocol
AdvertiseSystem.php
Generated by
1.12.0