|
static | healthPercent (int $bossActorUniqueId, float $healthPercent) |
|
static | hide (int $bossActorUniqueId) |
|
static | properties (int $bossActorUniqueId, bool $darkenScreen, int $color=BossBarColor::PURPLE, int $overlay=0) |
|
static | query (int $bossActorUniqueId, int $playerActorUniqueId) |
|
static | registerPlayer (int $bossActorUniqueId, int $playerActorUniqueId) |
|
static | show (int $bossActorUniqueId, string $title, float $healthPercent, bool $darkenScreen=false, int $color=BossBarColor::PURPLE, int $overlay=0) |
|
static | title (int $bossActorUniqueId, string $title) |
|
static | unregisterPlayer (int $bossActorUniqueId, int $playerActorUniqueId) |
|
Definition at line 20 of file BossEventPacket.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\BossEventPacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\BossEventPacket::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 177 of file BossEventPacket.php.
◆ healthPercent()
static pocketmine\network\mcpe\protocol\BossEventPacket::healthPercent |
( |
int | $bossActorUniqueId, |
|
|
float | $healthPercent ) |
|
static |
◆ hide()
static pocketmine\network\mcpe\protocol\BossEventPacket::hide |
( |
int | $bossActorUniqueId | ) |
|
|
static |
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ properties()
static pocketmine\network\mcpe\protocol\BossEventPacket::properties |
( |
int | $bossActorUniqueId, |
|
|
bool | $darkenScreen, |
|
|
int | $color = BossBarColor::PURPLE, |
|
|
int | $overlay = 0 ) |
|
static |
◆ query()
static pocketmine\network\mcpe\protocol\BossEventPacket::query |
( |
int | $bossActorUniqueId, |
|
|
int | $playerActorUniqueId ) |
|
static |
◆ registerPlayer()
static pocketmine\network\mcpe\protocol\BossEventPacket::registerPlayer |
( |
int | $bossActorUniqueId, |
|
|
int | $playerActorUniqueId ) |
|
static |
◆ show()
static pocketmine\network\mcpe\protocol\BossEventPacket::show |
( |
int | $bossActorUniqueId, |
|
|
string | $title, |
|
|
float | $healthPercent, |
|
|
bool | $darkenScreen = false, |
|
|
int | $color = BossBarColor::PURPLE, |
|
|
int | $overlay = 0 ) |
|
static |
◆ title()
static pocketmine\network\mcpe\protocol\BossEventPacket::title |
( |
int | $bossActorUniqueId, |
|
|
string | $title ) |
|
static |
◆ unregisterPlayer()
static pocketmine\network\mcpe\protocol\BossEventPacket::unregisterPlayer |
( |
int | $bossActorUniqueId, |
|
|
int | $playerActorUniqueId ) |
|
static |
◆ $bossActorUniqueId
int pocketmine\network\mcpe\protocol\BossEventPacket::$bossActorUniqueId |
◆ $color
int pocketmine\network\mcpe\protocol\BossEventPacket::$color |
◆ $darkenScreen
bool pocketmine\network\mcpe\protocol\BossEventPacket::$darkenScreen |
◆ $eventType
int pocketmine\network\mcpe\protocol\BossEventPacket::$eventType |
◆ $healthPercent
float pocketmine\network\mcpe\protocol\BossEventPacket::$healthPercent |
◆ $overlay
int pocketmine\network\mcpe\protocol\BossEventPacket::$overlay |
◆ $playerActorUniqueId
int pocketmine\network\mcpe\protocol\BossEventPacket::$playerActorUniqueId |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $title
string pocketmine\network\mcpe\protocol\BossEventPacket::$title |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\BossEventPacket::NETWORK_ID = ProtocolInfo::BOSS_EVENT_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
◆ TYPE_HEALTH_PERCENT
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_HEALTH_PERCENT = 4 |
◆ TYPE_HIDE
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_HIDE = 2 |
◆ TYPE_PROPERTIES
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_PROPERTIES = 6 |
S2C: Updates misc properties of the bar and environment.
Definition at line 36 of file BossEventPacket.php.
◆ TYPE_QUERY
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_QUERY = 8 |
C2S: Client asking the server to resend all boss data.
Definition at line 40 of file BossEventPacket.php.
◆ TYPE_REGISTER_PLAYER
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_REGISTER_PLAYER = 1 |
◆ TYPE_SHOW
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_SHOW = 0 |
◆ TYPE_TEXTURE
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_TEXTURE = 7 |
◆ TYPE_TITLE
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_TITLE = 5 |
◆ TYPE_UNREGISTER_PLAYER
const pocketmine\network\mcpe\protocol\BossEventPacket::TYPE_UNREGISTER_PLAYER = 3 |
The documentation for this class was generated from the following file: