PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (array $ingredients, array $results, ShapelessRecipeType $type) | |
getIngredientCount () | |
getIngredientList () | |
getResults () | |
getResultsFor (CraftingGrid $grid) | |
getType () | |
matchesCraftingGrid (CraftingGrid $grid) | |
Definition at line 30 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::__construct | ( | array | $ingredients, |
array | $results, | ||
ShapelessRecipeType | $type ) |
RecipeIngredient[] | $ingredients | No more than 9 total. This applies to sum of item stack counts, not count of array. |
Item[] | $results | List of result items created by this recipe. |
@phpstan-param list<RecipeIngredient> $ingredients @phpstan-param list<Item> $results
Definition at line 50 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::getIngredientCount | ( | ) |
Definition at line 80 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::getIngredientList | ( | ) |
Returns a list of items needed to craft this recipe. This MUST NOT include Air items or items with a zero count.
Implements pocketmine\crafting\CraftingRecipe.
Definition at line 76 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::getResults | ( | ) |
Definition at line 64 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::getResultsFor | ( | CraftingGrid | $grid | ) |
Returns a list of results this recipe will produce when the inputs in the given crafting grid are consumed.
Implements pocketmine\crafting\CraftingRecipe.
Definition at line 68 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::getType | ( | ) |
Definition at line 72 of file src/crafting/ShapelessRecipe.php.
pocketmine\crafting\ShapelessRecipe::matchesCraftingGrid | ( | CraftingGrid | $grid | ) |
Returns whether the given crafting grid meets the requirements to craft this recipe.
Implements pocketmine\crafting\CraftingRecipe.
Definition at line 84 of file src/crafting/ShapelessRecipe.php.