BossEventPacket
extends DataPacket
in package
implements
ClientboundPacket, ServerboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::BOSS_EVENT_PACKET
- PID_MASK = 0x3ff
- TYPE_HEALTH_PERCENT = 4
- TYPE_HIDE = 2
- TYPE_REGISTER_PLAYER = 1
- TYPE_SHOW = 0
- TYPE_TEXTURE = 7
- TYPE_TITLE = 5
- TYPE_UNKNOWN_6 = 6
- TYPE_UNREGISTER_PLAYER = 3
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $bossActorUniqueId : int
- $color : int
- $eventType : int
- $healthPercent : float
- $overlay : int
- $playerActorUniqueId : int
- $recipientSubId : int
- $senderSubId : int
- $title : string
- $unknownShort : int
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- decode() : void
- encode() : void
- getName() : string
- handle() : bool
- healthPercent() : self
- hide() : self
- pid() : int
- registerPlayer() : self
- show() : self
- title() : self
- unknown6() : self
- unregisterPlayer() : 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.
- base() : self
Constants
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::BOSS_EVENT_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
TYPE_HEALTH_PERCENT
public
mixed
TYPE_HEALTH_PERCENT
= 4
TYPE_HIDE
public
mixed
TYPE_HIDE
= 2
TYPE_REGISTER_PLAYER
public
mixed
TYPE_REGISTER_PLAYER
= 1
TYPE_SHOW
public
mixed
TYPE_SHOW
= 0
TYPE_TEXTURE
public
mixed
TYPE_TEXTURE
= 7
TYPE_TITLE
public
mixed
TYPE_TITLE
= 5
TYPE_UNKNOWN_6
public
mixed
TYPE_UNKNOWN_6
= 6
TYPE_UNREGISTER_PLAYER
public
mixed
TYPE_UNREGISTER_PLAYER
= 3
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
$bossActorUniqueId
public
int
$bossActorUniqueId
$color
public
int
$color
$eventType
public
int
$eventType
$healthPercent
public
float
$healthPercent
$overlay
public
int
$overlay
$playerActorUniqueId
public
int
$playerActorUniqueId
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$title
public
string
$title
$unknownShort
public
int
$unknownShort
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 —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —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 —healthPercent()
public
static healthPercent(int $bossActorUniqueId, float $healthPercent) : self
Parameters
- $bossActorUniqueId : int
- $healthPercent : float
Return values
self —hide()
public
static hide(int $bossActorUniqueId) : self
Parameters
- $bossActorUniqueId : int
Return values
self —pid()
public
pid() : int
Return values
int —registerPlayer()
public
static registerPlayer(int $bossActorUniqueId, int $playerActorUniqueId) : self
Parameters
- $bossActorUniqueId : int
- $playerActorUniqueId : int
Return values
self —show()
public
static show(int $bossActorUniqueId, string $title, float $healthPercent[, int $unknownShort = 0 ][, int $color = BossBarColor::PURPLE ]) : self
Parameters
- $bossActorUniqueId : int
- $title : string
- $healthPercent : float
- $unknownShort : int = 0
- $color : int = BossBarColor::PURPLE
Return values
self —title()
public
static title(int $bossActorUniqueId, string $title) : self
Parameters
- $bossActorUniqueId : int
- $title : string
Return values
self —unknown6()
public
static unknown6(int $bossActorUniqueId, int $unknownShort) : self
Parameters
- $bossActorUniqueId : int
- $unknownShort : int
Return values
self —unregisterPlayer()
public
static unregisterPlayer(int $bossActorUniqueId, int $playerActorUniqueId) : self
Parameters
- $bossActorUniqueId : int
- $playerActorUniqueId : int
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 —base()
private
static base(int $bossActorUniqueId, int $eventId) : self
Parameters
- $bossActorUniqueId : int
- $eventId : int