BookEditPacket
extends DataPacket
in package
implements
ServerboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::BOOK_EDIT_PACKET
- PID_MASK = 0x3ff
- TYPE_ADD_PAGE = 1
- TYPE_DELETE_PAGE = 2
- TYPE_REPLACE_PAGE = 0
- TYPE_SIGN_BOOK = 4
- TYPE_SWAP_PAGES = 3
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $author : string
- $inventorySlot : int
- $pageNumber : int
- $photoName : string
- $recipientSubId : int
- $secondaryPageNumber : int
- $senderSubId : int
- $text : string
- $title : string
- $type : int
- $xuid : string
- __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::BOOK_EDIT_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
TYPE_ADD_PAGE
public
mixed
TYPE_ADD_PAGE
= 1
TYPE_DELETE_PAGE
public
mixed
TYPE_DELETE_PAGE
= 2
TYPE_REPLACE_PAGE
public
mixed
TYPE_REPLACE_PAGE
= 0
TYPE_SIGN_BOOK
public
mixed
TYPE_SIGN_BOOK
= 4
TYPE_SWAP_PAGES
public
mixed
TYPE_SWAP_PAGES
= 3
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
$author
public
string
$author
$inventorySlot
public
int
$inventorySlot
$pageNumber
public
int
$pageNumber
$photoName
public
string
$photoName
$recipientSubId
public
int
$recipientSubId
= 0
$secondaryPageNumber
public
int
$secondaryPageNumber
$senderSubId
public
int
$senderSubId
= 0
$text
public
string
$text
$title
public
string
$title
$type
public
int
$type
$xuid
public
string
$xuid
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