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

Public Member Functions

 __construct (private ?array $unlockingIngredients)
 
 getUnlockingIngredients ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Detailed Description

Definition at line 23 of file RecipeUnlockingRequirement.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\recipe\RecipeUnlockingRequirement::__construct ( private ?array $unlockingIngredients)
Parameters
RecipeIngredient[] | null$unlockingIngredients@phpstan-param list<RecipeIngredient>|null $unlockingIngredients

Definition at line 29 of file RecipeUnlockingRequirement.php.

Member Function Documentation

◆ getUnlockingIngredients()

pocketmine\network\mcpe\protocol\types\recipe\RecipeUnlockingRequirement::getUnlockingIngredients ( )
Returns
RecipeIngredient[]|null @phpstan-return list<RecipeIngredient>|null

Definition at line 37 of file RecipeUnlockingRequirement.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\recipe\RecipeUnlockingRequirement::read ( ByteBufferReader $in)
static

Definition at line 39 of file RecipeUnlockingRequirement.php.

◆ write()

pocketmine\network\mcpe\protocol\types\recipe\RecipeUnlockingRequirement::write ( ByteBufferWriter $out)

Definition at line 54 of file RecipeUnlockingRequirement.php.


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