AnimatePacket
extends DataPacket
in package
implements
ClientboundPacket, ServerboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- ACTION_CRITICAL_HIT = 4
- ACTION_MAGICAL_CRITICAL_HIT = 5
- ACTION_ROW_LEFT = 129
- ACTION_ROW_RIGHT = 128
- ACTION_STOP_SLEEP = 3
- ACTION_SWING_ARM = 1
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::ANIMATE_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $action : int
- $actorRuntimeId : int
- $float : float
- $recipientSubId : int
- $senderSubId : int
- __get() : mixed
- __set() : void
- boatHack() : self
- canBeSentBeforeLogin() : bool
- create() : self
- 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
ACTION_CRITICAL_HIT
public
mixed
ACTION_CRITICAL_HIT
= 4
ACTION_MAGICAL_CRITICAL_HIT
public
mixed
ACTION_MAGICAL_CRITICAL_HIT
= 5
ACTION_ROW_LEFT
public
mixed
ACTION_ROW_LEFT
= 129
ACTION_ROW_RIGHT
public
mixed
ACTION_ROW_RIGHT
= 128
ACTION_STOP_SLEEP
public
mixed
ACTION_STOP_SLEEP
= 3
ACTION_SWING_ARM
public
mixed
ACTION_SWING_ARM
= 1
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::ANIMATE_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
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
$action
public
int
$action
$actorRuntimeId
public
int
$actorRuntimeId
$float
public
float
$float
= 0.0
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
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 —boatHack()
public
static boatHack(int $actorRuntimeId, int $actionId, float $data) : self
Parameters
- $actorRuntimeId : int
- $actionId : int
- $data : float
Return values
self —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —create()
public
static create(int $actorRuntimeId, int $actionId) : self
Parameters
- $actorRuntimeId : int
- $actionId : int
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 —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