PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\crafting\json\ShapelessRecipeData Class Reference
+ Inheritance diagram for pocketmine\crafting\json\ShapelessRecipeData:
+ Collaboration diagram for pocketmine\crafting\json\ShapelessRecipeData:

Public Member Functions

 __construct (array $input, array $output, string $block, int $priority, array $unlockingIngredients=[])
 
 jsonSerialize ()
 

Public Attributes

string $block
 
array $input
 
array $output
 
int $priority
 
array $unlockingIngredients = []
 

Detailed Description

Definition at line 28 of file ShapelessRecipeData.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\crafting\json\ShapelessRecipeData::__construct ( array $input,
array $output,
string $block,
int $priority,
array $unlockingIngredients = [] )
Parameters
RecipeIngredientData[]$input
ItemStackData[]$output
RecipeIngredientData[]$unlockingIngredients

@phpstan-param list<RecipeIngredientData> $input @phpstan-param list<ItemStackData> $output @phpstan-param list<RecipeIngredientData> $unlockingIngredients

Definition at line 62 of file ShapelessRecipeData.php.

References pocketmine\crafting\json\ShapelessRecipeData\$block, and pocketmine\crafting\json\ShapelessRecipeData\$priority.

Member Function Documentation

◆ jsonSerialize()

pocketmine\crafting\json\ShapelessRecipeData::jsonSerialize ( )
Returns
mixed[]

Definition at line 73 of file ShapelessRecipeData.php.

Member Data Documentation

◆ $block

string pocketmine\crafting\json\ShapelessRecipeData::$block

@required

Definition at line 45 of file ShapelessRecipeData.php.

Referenced by pocketmine\crafting\json\ShapelessRecipeData\__construct().

◆ $input

array pocketmine\crafting\json\ShapelessRecipeData::$input

Definition at line 35 of file ShapelessRecipeData.php.

◆ $output

array pocketmine\crafting\json\ShapelessRecipeData::$output

Definition at line 42 of file ShapelessRecipeData.php.

◆ $priority

int pocketmine\crafting\json\ShapelessRecipeData::$priority

@required

Definition at line 48 of file ShapelessRecipeData.php.

Referenced by pocketmine\crafting\json\ShapelessRecipeData\__construct().

◆ $unlockingIngredients

array pocketmine\crafting\json\ShapelessRecipeData::$unlockingIngredients = []

Definition at line 51 of file ShapelessRecipeData.php.


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