EventPacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::EVENT_PACKET
- PID_MASK = 0x3ff
- TYPE_ACHIEVEMENT_AWARDED = 0
- TYPE_ACTOR_DEFINITION = 18
- TYPE_AGENT_COMMAND = 8
- TYPE_AGENT_CREATED = 9
- TYPE_BELL_BLOCK_USED = 17
- TYPE_BOSS_KILLED = 7
- TYPE_CAULDRON_BLOCK_USED = 15
- TYPE_CAULDRON_USED = 5
- TYPE_COMMANED_EXECUTED = 11
- TYPE_COMPOSTER_BLOCK_USED = 16
- TYPE_ENTITY_INTERACT = 1
- TYPE_FISH_BUCKETED = 12
- TYPE_HONEY_HARVESTED = 22
- TYPE_MOB_BORN = 13
- TYPE_MOB_KILLED = 4
- TYPE_PATTERN_REMOVED = 10
- TYPE_PET_DIED = 14
- TYPE_PIGLIN_BARTER = 24
- TYPE_PLAYER_DEATH = 6
- TYPE_PLAYER_MOVEMENT_ANOMALY = 20
- TYPE_PLAYER_MOVEMENT_CORRECTED = 21
- TYPE_PORTAL_BUILT = 2
- TYPE_PORTAL_USED = 3
- TYPE_RAID_UPDATE = 19
- TYPE_TARGET_BLOCK_HIT = 23
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $eventData : int
- $playerRuntimeId : int
- $recipientSubId : int
- $senderSubId : int
- $type : int
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- decode() : void
- encode() : void
- getName() : string
- handle() : bool
- pid() : int
- 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.
Constants
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::EVENT_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
TYPE_ACHIEVEMENT_AWARDED
public
mixed
TYPE_ACHIEVEMENT_AWARDED
= 0
TYPE_ACTOR_DEFINITION
public
mixed
TYPE_ACTOR_DEFINITION
= 18
TYPE_AGENT_COMMAND
public
mixed
TYPE_AGENT_COMMAND
= 8
TYPE_AGENT_CREATED
public
mixed
TYPE_AGENT_CREATED
= 9
TYPE_BELL_BLOCK_USED
public
mixed
TYPE_BELL_BLOCK_USED
= 17
TYPE_BOSS_KILLED
public
mixed
TYPE_BOSS_KILLED
= 7
TYPE_CAULDRON_BLOCK_USED
public
mixed
TYPE_CAULDRON_BLOCK_USED
= 15
TYPE_CAULDRON_USED
public
mixed
TYPE_CAULDRON_USED
= 5
TYPE_COMMANED_EXECUTED
public
mixed
TYPE_COMMANED_EXECUTED
= 11
TYPE_COMPOSTER_BLOCK_USED
public
mixed
TYPE_COMPOSTER_BLOCK_USED
= 16
TYPE_ENTITY_INTERACT
public
mixed
TYPE_ENTITY_INTERACT
= 1
TYPE_FISH_BUCKETED
public
mixed
TYPE_FISH_BUCKETED
= 12
TYPE_HONEY_HARVESTED
public
mixed
TYPE_HONEY_HARVESTED
= 22
TYPE_MOB_BORN
public
mixed
TYPE_MOB_BORN
= 13
TYPE_MOB_KILLED
public
mixed
TYPE_MOB_KILLED
= 4
TYPE_PATTERN_REMOVED
public
mixed
TYPE_PATTERN_REMOVED
= 10
TYPE_PET_DIED
public
mixed
TYPE_PET_DIED
= 14
TYPE_PIGLIN_BARTER
public
mixed
TYPE_PIGLIN_BARTER
= 24
TYPE_PLAYER_DEATH
public
mixed
TYPE_PLAYER_DEATH
= 6
TYPE_PLAYER_MOVEMENT_ANOMALY
public
mixed
TYPE_PLAYER_MOVEMENT_ANOMALY
= 20
TYPE_PLAYER_MOVEMENT_CORRECTED
public
mixed
TYPE_PLAYER_MOVEMENT_CORRECTED
= 21
TYPE_PORTAL_BUILT
public
mixed
TYPE_PORTAL_BUILT
= 2
TYPE_PORTAL_USED
public
mixed
TYPE_PORTAL_USED
= 3
TYPE_RAID_UPDATE
public
mixed
TYPE_RAID_UPDATE
= 19
TYPE_TARGET_BLOCK_HIT
public
mixed
TYPE_TARGET_BLOCK_HIT
= 23
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
$eventData
public
int
$eventData
$playerRuntimeId
public
int
$playerRuntimeId
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$type
public
int
$type
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 —pid()
public
pid() : int
Return values
int —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