|
static | create (array $recipesWithTypeIds, array $potionTypeRecipes, array $potionContainerRecipes, array $materialReducerRecipes, bool $cleanRecipes) |
|
Definition at line 31 of file CraftingDataPacket.php.
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
|
$name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ create()
static pocketmine\network\mcpe\protocol\CraftingDataPacket::create |
( |
array |
$recipesWithTypeIds, |
|
|
array |
$potionTypeRecipes, |
|
|
array |
$potionContainerRecipes, |
|
|
array |
$materialReducerRecipes, |
|
|
bool |
$cleanRecipes |
|
) |
| |
|
static |
@generate-create-func
- Parameters
-
RecipeWithTypeId[] | $recipesWithTypeIds | |
PotionTypeRecipe[] | $potionTypeRecipes | |
PotionContainerChangeRecipe[] | $potionContainerRecipes | |
MaterialReducerRecipe[] | $materialReducerRecipes | |
Definition at line 62 of file CraftingDataPacket.php.
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer |
$in | ) |
|
|
protectedinherited |
◆ decodePayload()
pocketmine\network\mcpe\protocol\CraftingDataPacket::decodePayload |
( |
PacketSerializer |
$in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer |
$out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\CraftingDataPacket::encodePayload |
( |
PacketSerializer |
$out | ) |
|
|
protected |
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 151 of file CraftingDataPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $cleanRecipes
bool pocketmine\network\mcpe\protocol\CraftingDataPacket::$cleanRecipes = false |
◆ $materialReducerRecipes
array pocketmine\network\mcpe\protocol\CraftingDataPacket::$materialReducerRecipes = [] |
◆ $potionContainerRecipes
array pocketmine\network\mcpe\protocol\CraftingDataPacket::$potionContainerRecipes = [] |
◆ $potionTypeRecipes
array pocketmine\network\mcpe\protocol\CraftingDataPacket::$potionTypeRecipes = [] |
◆ $recipesWithTypeIds
array pocketmine\network\mcpe\protocol\CraftingDataPacket::$recipesWithTypeIds = [] |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ ENTRY_FURNACE
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_FURNACE = 2 |
◆ ENTRY_FURNACE_DATA
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_FURNACE_DATA = 3 |
◆ ENTRY_MULTI
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_MULTI = 4 |
◆ ENTRY_SHAPED
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SHAPED = 1 |
◆ ENTRY_SHAPED_CHEMISTRY
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SHAPED_CHEMISTRY = 7 |
◆ ENTRY_SHAPELESS
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SHAPELESS = 0 |
◆ ENTRY_SHAPELESS_CHEMISTRY
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SHAPELESS_CHEMISTRY = 6 |
◆ ENTRY_SHULKER_BOX
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SHULKER_BOX = 5 |
◆ ENTRY_SMITHING_TRANSFORM
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SMITHING_TRANSFORM = 8 |
◆ ENTRY_SMITHING_TRIM
const pocketmine\network\mcpe\protocol\CraftingDataPacket::ENTRY_SMITHING_TRIM = 9 |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\CraftingDataPacket::NETWORK_ID = ProtocolInfo::CRAFTING_DATA_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: