Documentation

BossEventPacket extends DataPacket
in package
implements ClientboundPacket, ServerboundPacket

Interfaces, Classes, Traits and Enums

ClientboundPacket
ServerboundPacket

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

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

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

getName()

public getName() : string
Return values
string

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

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

base()

private static base(int $bossActorUniqueId, int $eventId) : self
Parameters
$bossActorUniqueId : int
$eventId : int
Return values
self

Search results