|
static | jukeboxPopup (string $key, array $parameters=[]) |
|
static | popup (string $message) |
|
static | raw (string $message) |
|
static | tip (string $message) |
|
static | translatedPopup (string $key, array $parameters=[]) |
|
static | translation (string $key, array $parameters=[]) |
|
Definition at line 20 of file TextPacket.php.
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
| $name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
| $name, |
|
|
| $value ) |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer | $in | ) |
|
|
protectedinherited |
- Exceptions
-
BinaryDataException | |
PacketDecodeException | |
Definition at line 62 of file DataPacket.php.
◆ decodePayload()
pocketmine\network\mcpe\protocol\TextPacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\TextPacket::encodePayload |
( |
PacketSerializer | $out | ) |
|
|
protected |
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
PacketDecodeException | if broken data was found in the packet |
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 166 of file TextPacket.php.
◆ jukeboxPopup()
static pocketmine\network\mcpe\protocol\TextPacket::jukeboxPopup |
( |
string | $key, |
|
|
array | $parameters = [] ) |
|
static |
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ popup()
static pocketmine\network\mcpe\protocol\TextPacket::popup |
( |
string | $message | ) |
|
|
static |
◆ raw()
static pocketmine\network\mcpe\protocol\TextPacket::raw |
( |
string | $message | ) |
|
|
static |
◆ tip()
static pocketmine\network\mcpe\protocol\TextPacket::tip |
( |
string | $message | ) |
|
|
static |
◆ translatedPopup()
static pocketmine\network\mcpe\protocol\TextPacket::translatedPopup |
( |
string | $key, |
|
|
array | $parameters = [] ) |
|
static |
◆ translation()
static pocketmine\network\mcpe\protocol\TextPacket::translation |
( |
string | $key, |
|
|
array | $parameters = [] ) |
|
static |
◆ $filteredMessage
string pocketmine\network\mcpe\protocol\TextPacket::$filteredMessage = "" |
◆ $message
string pocketmine\network\mcpe\protocol\TextPacket::$message |
◆ $needsTranslation
bool pocketmine\network\mcpe\protocol\TextPacket::$needsTranslation = false |
◆ $parameters
array pocketmine\network\mcpe\protocol\TextPacket::$parameters = [] |
◆ $platformChatId
string pocketmine\network\mcpe\protocol\TextPacket::$platformChatId = "" |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $sourceName
string pocketmine\network\mcpe\protocol\TextPacket::$sourceName |
◆ $type
int pocketmine\network\mcpe\protocol\TextPacket::$type |
◆ $xboxUserId
string pocketmine\network\mcpe\protocol\TextPacket::$xboxUserId = "" |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\TextPacket::NETWORK_ID = ProtocolInfo::TEXT_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
◆ TYPE_ANNOUNCEMENT
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_ANNOUNCEMENT = 8 |
◆ TYPE_CHAT
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_CHAT = 1 |
◆ TYPE_JSON
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_JSON = 10 |
◆ TYPE_JSON_ANNOUNCEMENT
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_JSON_ANNOUNCEMENT = 11 |
◆ TYPE_JSON_WHISPER
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_JSON_WHISPER = 9 |
◆ TYPE_JUKEBOX_POPUP
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_JUKEBOX_POPUP = 4 |
◆ TYPE_POPUP
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_POPUP = 3 |
◆ TYPE_RAW
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_RAW = 0 |
◆ TYPE_SYSTEM
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_SYSTEM = 6 |
◆ TYPE_TIP
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_TIP = 5 |
◆ TYPE_TRANSLATION
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_TRANSLATION = 2 |
◆ TYPE_WHISPER
const pocketmine\network\mcpe\protocol\TextPacket::TYPE_WHISPER = 7 |
The documentation for this class was generated from the following file: