PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe:

Public Member Functions

 __construct (int $typeId, private string $recipeId, private array $input, private array $output, private UuidInterface $uuid, string $blockType, private int $priority, private bool $symmetric, private RecipeUnlockingRequirement $unlockingRequirement, private int $recipeNetId)
 
 encode (ByteBufferWriter $out)
 
 getBlockName ()
 
 getHeight ()
 
 getInput ()
 
 getOutput ()
 
 getPriority ()
 
 getRecipeId ()
 
 getRecipeNetId ()
 
 getTypeId ()
 
 getUnlockingRequirement ()
 
 getUuid ()
 
 getWidth ()
 
 isSymmetric ()
 

Static Public Member Functions

static decode (int $recipeType, ByteBufferReader $in)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::__construct ( int $typeId,
private string $recipeId,
private array $input,
private array $output,
private UuidInterface $uuid,
string $blockType,
private int $priority,
private bool $symmetric,
private RecipeUnlockingRequirement $unlockingRequirement,
private int $recipeNetId )
Parameters
RecipeIngredient[][]$input
ItemStack[]$output@phpstan-param list<list<RecipeIngredient>> $input @phpstan-param list<ItemStack> $output

Definition at line 34 of file vendor/pocketmine/bedrock-protocol/src/types/recipe/ShapedRecipe.php.

Member Function Documentation

◆ decode()

static pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::decode ( int $recipeType,
ByteBufferReader $in )
static

◆ encode()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::encode ( ByteBufferWriter $out)

◆ getBlockName()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getBlockName ( )

◆ getHeight()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getHeight ( )

◆ getInput()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getInput ( )
Returns
RecipeIngredient[][] @phpstan-return list<list<RecipeIngredient>>

Definition at line 78 of file vendor/pocketmine/bedrock-protocol/src/types/recipe/ShapedRecipe.php.

◆ getOutput()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getOutput ( )
Returns
ItemStack[] @phpstan-return list<ItemStack>

Definition at line 86 of file vendor/pocketmine/bedrock-protocol/src/types/recipe/ShapedRecipe.php.

◆ getPriority()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getPriority ( )

◆ getRecipeId()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getRecipeId ( )

◆ getRecipeNetId()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getRecipeNetId ( )

◆ getTypeId()

pocketmine\network\mcpe\protocol\types\recipe\RecipeWithTypeId::getTypeId ( )
finalinherited

Definition at line 24 of file RecipeWithTypeId.php.

◆ getUnlockingRequirement()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getUnlockingRequirement ( )

◆ getUuid()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getUuid ( )

◆ getWidth()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::getWidth ( )

◆ isSymmetric()

pocketmine\network\mcpe\protocol\types\recipe\ShapedRecipe::isSymmetric ( )

The documentation for this class was generated from the following file: