CraftRecipeAutoStackRequestAction
extends ItemStackRequestAction
in package
Uses
GetTypeIdFromConstTrait
Tells that the current transaction crafted the specified recipe, using the recipe book. This is effectively the same as the regular crafting result action.
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::CRAFTING_RECIPE_AUTO
- $recipeId : int
- $repetitions : int
- __construct() : mixed
- getRecipeId() : int
- getRepetitions() : int
- getTypeId() : int
- read() : self
- write() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::CRAFTING_RECIPE_AUTO
Properties
$recipeId
private
int
$recipeId
$repetitions
private
int
$repetitions
Methods
__construct()
public
final __construct(int $recipeId, int $repetitions) : mixed
Parameters
- $recipeId : int
- $repetitions : int
Return values
mixed —getRecipeId()
public
getRecipeId() : int
Return values
int —getRepetitions()
public
getRepetitions() : int
Return values
int —getTypeId()
public
abstract getTypeId() : int
Return values
int —read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Return values
self —write()
public
write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer