PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
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.