EducationSettingsPacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::EDUCATION_SETTINGS_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $recipientSubId : int
- $senderSubId : int
- $agentCapabilities : EducationSettingsAgentCapabilities|null
- $canResizeCodeBuilder : bool
- $codeBuilderDefaultUri : string
- $codeBuilderOverrideUri : string|null
- $codeBuilderTitle : string
- $disableLegacyTitleBar : bool
- $hasQuiz : bool
- $linkSettings : EducationSettingsExternalLinkSettings|null
- $postProcessFilter : string
- $screenshotBorderResourcePath : string
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- canResizeCodeBuilder() : bool
- create() : self
- decode() : void
- disableLegacyTitleBar() : bool
- encode() : void
- getAgentCapabilities() : EducationSettingsAgentCapabilities|null
- getCodeBuilderDefaultUri() : string
- getCodeBuilderOverrideUri() : string|null
- getCodeBuilderTitle() : string
- getHasQuiz() : bool
- getLinkSettings() : EducationSettingsExternalLinkSettings|null
- getName() : string
- getPostProcessFilter() : string
- getScreenshotBorderResourcePath() : 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::EDUCATION_SETTINGS_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
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$agentCapabilities
private
EducationSettingsAgentCapabilities|null
$agentCapabilities
$canResizeCodeBuilder
private
bool
$canResizeCodeBuilder
$codeBuilderDefaultUri
private
string
$codeBuilderDefaultUri
$codeBuilderOverrideUri
private
string|null
$codeBuilderOverrideUri
$codeBuilderTitle
private
string
$codeBuilderTitle
$disableLegacyTitleBar
private
bool
$disableLegacyTitleBar
$hasQuiz
private
bool
$hasQuiz
$linkSettings
private
EducationSettingsExternalLinkSettings|null
$linkSettings
$postProcessFilter
private
string
$postProcessFilter
$screenshotBorderResourcePath
private
string
$screenshotBorderResourcePath
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 —canResizeCodeBuilder()
public
canResizeCodeBuilder() : bool
Return values
bool —create()
public
static create(string $codeBuilderDefaultUri, string $codeBuilderTitle, bool $canResizeCodeBuilder, bool $disableLegacyTitleBar, string $postProcessFilter, string $screenshotBorderResourcePath, EducationSettingsAgentCapabilities|null $agentCapabilities, string|null $codeBuilderOverrideUri, bool $hasQuiz, EducationSettingsExternalLinkSettings|null $linkSettings) : self
Parameters
- $codeBuilderDefaultUri : string
- $codeBuilderTitle : string
- $canResizeCodeBuilder : bool
- $disableLegacyTitleBar : bool
- $postProcessFilter : string
- $screenshotBorderResourcePath : string
- $agentCapabilities : EducationSettingsAgentCapabilities|null
- $codeBuilderOverrideUri : string|null
- $hasQuiz : bool
- $linkSettings : EducationSettingsExternalLinkSettings|null
Tags
Return values
self —decode()
public
final decode(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —disableLegacyTitleBar()
public
disableLegacyTitleBar() : bool
Return values
bool —encode()
public
final encode(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —getAgentCapabilities()
public
getAgentCapabilities() : EducationSettingsAgentCapabilities|null
Return values
EducationSettingsAgentCapabilities|null —getCodeBuilderDefaultUri()
public
getCodeBuilderDefaultUri() : string
Return values
string —getCodeBuilderOverrideUri()
public
getCodeBuilderOverrideUri() : string|null
Return values
string|null —getCodeBuilderTitle()
public
getCodeBuilderTitle() : string
Return values
string —getHasQuiz()
public
getHasQuiz() : bool
Return values
bool —getLinkSettings()
public
getLinkSettings() : EducationSettingsExternalLinkSettings|null
Return values
EducationSettingsExternalLinkSettings|null —getName()
public
getName() : string
Return values
string —getPostProcessFilter()
public
getPostProcessFilter() : string
Return values
string —getScreenshotBorderResourcePath()
public
getScreenshotBorderResourcePath() : 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