SetTitlePacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::SET_TITLE_PACKET
- PID_MASK = 0x3ff
- TYPE_CLEAR_TITLE = 0
- TYPE_RESET_TITLE = 1
- TYPE_SET_ACTIONBAR_MESSAGE = 4
- TYPE_SET_ACTIONBAR_MESSAGE_JSON = 8
- TYPE_SET_ANIMATION_TIMES = 5
- TYPE_SET_SUBTITLE = 3
- TYPE_SET_SUBTITLE_JSON = 7
- TYPE_SET_TITLE = 2
- TYPE_SET_TITLE_JSON = 6
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $fadeInTime : int
- $fadeOutTime : int
- $platformOnlineId : string
- $recipientSubId : int
- $senderSubId : int
- $stayTime : int
- $text : string
- $type : int
- $xuid : string
- __get() : mixed
- __set() : void
- actionBarMessage() : self
- canBeSentBeforeLogin() : bool
- clearTitle() : self
- create() : self
- decode() : void
- encode() : void
- getName() : string
- handle() : bool
- pid() : int
- resetTitleOptions() : self
- setAnimationTimes() : self
- subtitle() : self
- title() : self
- decodeHeader() : void
- decodePayload() : void
- Decodes the packet body, without the packet ID or other generic header fields.
- encodeHeader() : void
- encodePayload() : void
- Encodes the packet body, without the packet ID or other generic header fields.
- text() : self
- type() : self
Constants
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::SET_TITLE_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
TYPE_CLEAR_TITLE
public
mixed
TYPE_CLEAR_TITLE
= 0
TYPE_RESET_TITLE
public
mixed
TYPE_RESET_TITLE
= 1
TYPE_SET_ACTIONBAR_MESSAGE
public
mixed
TYPE_SET_ACTIONBAR_MESSAGE
= 4
TYPE_SET_ACTIONBAR_MESSAGE_JSON
public
mixed
TYPE_SET_ACTIONBAR_MESSAGE_JSON
= 8
TYPE_SET_ANIMATION_TIMES
public
mixed
TYPE_SET_ANIMATION_TIMES
= 5
TYPE_SET_SUBTITLE
public
mixed
TYPE_SET_SUBTITLE
= 3
TYPE_SET_SUBTITLE_JSON
public
mixed
TYPE_SET_SUBTITLE_JSON
= 7
TYPE_SET_TITLE
public
mixed
TYPE_SET_TITLE
= 2
TYPE_SET_TITLE_JSON
public
mixed
TYPE_SET_TITLE_JSON
= 6
RECIPIENT_SUBCLIENT_ID_SHIFT
private
mixed
RECIPIENT_SUBCLIENT_ID_SHIFT
= 12
SENDER_SUBCLIENT_ID_SHIFT
private
mixed
SENDER_SUBCLIENT_ID_SHIFT
= 10
SUBCLIENT_ID_MASK
private
mixed
SUBCLIENT_ID_MASK
= 0x3
Properties
$fadeInTime
public
int
$fadeInTime
= 0
$fadeOutTime
public
int
$fadeOutTime
= 0
$platformOnlineId
public
string
$platformOnlineId
= ""
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$stayTime
public
int
$stayTime
= 0
$text
public
string
$text
= ""
$type
public
int
$type
$xuid
public
string
$xuid
= ""
Methods
__get()
public
__get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —__set()
public
__set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Return values
void —actionBarMessage()
public
static actionBarMessage(string $text) : self
Parameters
- $text : string
Return values
self —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —clearTitle()
public
static clearTitle() : self
Return values
self —create()
public
static create(int $type, string $text, int $fadeInTime, int $stayTime, int $fadeOutTime, string $xuid, string $platformOnlineId) : self
Parameters
- $type : int
- $text : string
- $fadeInTime : int
- $stayTime : int
- $fadeOutTime : int
- $xuid : string
- $platformOnlineId : string
Tags
Return values
self —decode()
public
final decode(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —encode()
public
final encode(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —getName()
public
getName() : string
Return values
string —handle()
public
handle(PacketHandlerInterface $handler) : bool
Parameters
- $handler : PacketHandlerInterface
Return values
bool —pid()
public
pid() : int
Return values
int —resetTitleOptions()
public
static resetTitleOptions() : self
Return values
self —setAnimationTimes()
public
static setAnimationTimes(int $fadeIn, int $stay, int $fadeOut) : self
Parameters
- $fadeIn : int
- $stay : int
- $fadeOut : int
Return values
self —subtitle()
public
static subtitle(string $text) : self
Parameters
- $text : string
Return values
self —title()
public
static title(string $text) : self
Parameters
- $text : string
Return values
self —decodeHeader()
protected
decodeHeader(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —decodePayload()
Decodes the packet body, without the packet ID or other generic header fields.
protected
decodePayload(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Return values
void —encodeHeader()
protected
encodeHeader(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —encodePayload()
Encodes the packet body, without the packet ID or other generic header fields.
protected
encodePayload(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —text()
private
static text(int $type, string $text) : self
Parameters
- $type : int
- $text : string
Return values
self —type()
private
static type(int $type) : self
Parameters
- $type : int