ClientboundDebugRendererPacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::CLIENTBOUND_DEBUG_RENDERER_PACKET
- PID_MASK = 0x3ff
- TYPE_ADD_CUBE = 2
- TYPE_CLEAR = 1
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $recipientSubId : int
- $senderSubId : int
- $alpha : float
- $blue : float
- $durationMillis : int
- $green : float
- $position : Vector3
- $red : float
- $text : string
- $type : int
- __get() : mixed
- __set() : void
- addCube() : self
- canBeSentBeforeLogin() : bool
- clear() : self
- decode() : void
- encode() : void
- getAlpha() : float
- getBlue() : float
- getDurationMillis() : int
- getGreen() : float
- getName() : string
- getPosition() : Vector3
- getRed() : float
- getText() : string
- getType() : 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.
- base() : self
Constants
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::CLIENTBOUND_DEBUG_RENDERER_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
TYPE_ADD_CUBE
public
mixed
TYPE_ADD_CUBE
= 2
TYPE_CLEAR
public
mixed
TYPE_CLEAR
= 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
$alpha
private
float
$alpha
$blue
private
float
$blue
$durationMillis
private
int
$durationMillis
$green
private
float
$green
$position
private
Vector3
$position
$red
private
float
$red
$text
private
string
$text
$type
private
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 —addCube()
public
static addCube(string $text, Vector3 $position, float $red, float $green, float $blue, float $alpha, int $durationMillis) : self
Parameters
- $text : string
- $position : Vector3
- $red : float
- $green : float
- $blue : float
- $alpha : float
- $durationMillis : int
Return values
self —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —clear()
public
static clear() : self
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 —getAlpha()
public
getAlpha() : float
Return values
float —getBlue()
public
getBlue() : float
Return values
float —getDurationMillis()
public
getDurationMillis() : int
Return values
int —getGreen()
public
getGreen() : float
Return values
float —getName()
public
getName() : string
Return values
string —getPosition()
public
getPosition() : Vector3
Return values
Vector3 —getRed()
public
getRed() : float
Return values
float —getText()
public
getText() : string
Return values
string —getType()
public
getType() : 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
Return values
void —base()
private
static base(int $type) : self
Parameters
- $type : int