CraftingDataPacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- ENTRY_FURNACE = 2
- ENTRY_FURNACE_DATA = 3
- ENTRY_MULTI = 4
- ENTRY_SHAPED = 1
- ENTRY_SHAPED_CHEMISTRY = 7
- ENTRY_SHAPELESS = 0
- ENTRY_SHAPELESS_CHEMISTRY = 6
- ENTRY_SHULKER_BOX = 5
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::CRAFTING_DATA_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $cleanRecipes : bool
- $materialReducerRecipes : array<string|int, mixed>
- $potionContainerRecipes : array<string|int, mixed>
- $potionTypeRecipes : array<string|int, mixed>
- $recipesWithTypeIds : array<string|int, mixed>
- $recipientSubId : int
- $senderSubId : int
- __get() : mixed
- __set() : void
- 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
ENTRY_FURNACE
public
mixed
ENTRY_FURNACE
= 2
ENTRY_FURNACE_DATA
public
mixed
ENTRY_FURNACE_DATA
= 3
ENTRY_MULTI
public
mixed
ENTRY_MULTI
= 4
ENTRY_SHAPED
public
mixed
ENTRY_SHAPED
= 1
ENTRY_SHAPED_CHEMISTRY
public
mixed
ENTRY_SHAPED_CHEMISTRY
= 7
ENTRY_SHAPELESS
public
mixed
ENTRY_SHAPELESS
= 0
ENTRY_SHAPELESS_CHEMISTRY
public
mixed
ENTRY_SHAPELESS_CHEMISTRY
= 6
ENTRY_SHULKER_BOX
public
mixed
ENTRY_SHULKER_BOX
= 5
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::CRAFTING_DATA_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
$cleanRecipes
public
bool
$cleanRecipes
= false
$materialReducerRecipes
public
array<string|int, mixed>
$materialReducerRecipes
= []
$potionContainerRecipes
public
array<string|int, mixed>
$potionContainerRecipes
= []
$potionTypeRecipes
public
array<string|int, mixed>
$potionTypeRecipes
= []
$recipesWithTypeIds
public
array<string|int, mixed>
$recipesWithTypeIds
= []
$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 —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —create()
public
static create(array<string|int, RecipeWithTypeId> $recipesWithTypeIds, array<string|int, PotionTypeRecipe> $potionTypeRecipes, array<string|int, PotionContainerChangeRecipe> $potionContainerRecipes, array<string|int, MaterialReducerRecipe> $materialReducerRecipes, bool $cleanRecipes) : self
Parameters
- $recipesWithTypeIds : array<string|int, RecipeWithTypeId>
- $potionTypeRecipes : array<string|int, PotionTypeRecipe>
- $potionContainerRecipes : array<string|int, PotionContainerChangeRecipe>
- $materialReducerRecipes : array<string|int, MaterialReducerRecipe>
- $cleanRecipes : bool
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 —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