|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Inheritance diagram for pocketmine\crafting\json\ShapedRecipeData:
Collaboration diagram for pocketmine\crafting\json\ShapedRecipeData:Public Member Functions | |
| __construct (array $shape, array $input, array $output, string $block, int $priority, array $unlockingIngredients=[]) | |
| jsonSerialize () | |
Public Attributes | |
| string | $block |
| array | $input |
| array | $output |
| int | $priority |
| array | $shape |
| array | $unlockingIngredients = [] |
Definition at line 28 of file ShapedRecipeData.php.
| pocketmine\crafting\json\ShapedRecipeData::__construct | ( | array | $shape, |
| array | $input, | ||
| array | $output, | ||
| string | $block, | ||
| int | $priority, | ||
| array | $unlockingIngredients = [] ) |
TODO: convert this to use promoted properties - avoiding them for now since it would break JsonMapper
| string[] | $shape | |
| RecipeIngredientData[] | $input | |
| ItemStackData[] | $output | |
| RecipeIngredientData[] | $unlockingIngredients |
@phpstan-param list<string> $shape @phpstan-param array<string, RecipeIngredientData> $input @phpstan-param list<ItemStackData> $output @phpstan-param list<RecipeIngredientData> $unlockingIngredients
Definition at line 72 of file ShapedRecipeData.php.
References pocketmine\crafting\json\ShapedRecipeData\$block, and pocketmine\crafting\json\ShapedRecipeData\$priority.
| pocketmine\crafting\json\ShapedRecipeData::jsonSerialize | ( | ) |
Definition at line 84 of file ShapedRecipeData.php.
| string pocketmine\crafting\json\ShapedRecipeData::$block |
@required
Definition at line 51 of file ShapedRecipeData.php.
Referenced by pocketmine\crafting\json\ShapedRecipeData\__construct().
| array pocketmine\crafting\json\ShapedRecipeData::$input |
Definition at line 41 of file ShapedRecipeData.php.
| array pocketmine\crafting\json\ShapedRecipeData::$output |
Definition at line 48 of file ShapedRecipeData.php.
| int pocketmine\crafting\json\ShapedRecipeData::$priority |
@required
Definition at line 54 of file ShapedRecipeData.php.
Referenced by pocketmine\crafting\json\ShapedRecipeData\__construct().
| array pocketmine\crafting\json\ShapedRecipeData::$shape |
Definition at line 34 of file ShapedRecipeData.php.
| array pocketmine\crafting\json\ShapedRecipeData::$unlockingIngredients = [] |
Definition at line 57 of file ShapedRecipeData.php.