CameraShakePacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- ACTION_ADD = 0
- ACTION_STOP = 1
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::CAMERA_SHAKE_PACKET
- PID_MASK = 0x3ff
- TYPE_POSITIONAL = 0
- TYPE_ROTATIONAL = 1
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $recipientSubId : int
- $senderSubId : int
- $duration : float
- $intensity : float
- $shakeAction : int
- $shakeType : int
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- create() : self
- decode() : void
- encode() : void
- getDuration() : float
- getIntensity() : float
- getName() : string
- getShakeAction() : int
- getShakeType() : int
- 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_ADD
public
mixed
ACTION_ADD
= 0
ACTION_STOP
public
mixed
ACTION_STOP
= 1
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::CAMERA_SHAKE_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
TYPE_POSITIONAL
public
mixed
TYPE_POSITIONAL
= 0
TYPE_ROTATIONAL
public
mixed
TYPE_ROTATIONAL
= 1
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
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$duration
private
float
$duration
$intensity
private
float
$intensity
$shakeAction
private
int
$shakeAction
$shakeType
private
int
$shakeType
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 —create()
public
static create(float $intensity, float $duration, int $shakeType, int $shakeAction) : self
Parameters
- $intensity : float
- $duration : float
- $shakeType : int
- $shakeAction : int
Tags
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 —getDuration()
public
getDuration() : float
Return values
float —getIntensity()
public
getIntensity() : float
Return values
float —getName()
public
getName() : string
Return values
string —getShakeAction()
public
getShakeAction() : int
Return values
int —getShakeType()
public
getShakeType() : int
Return values
int —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