PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
|
Public Member Functions | |
getIngredientList () | |
getResultsFor (CraftingGrid $grid) | |
matchesCraftingGrid (CraftingGrid $grid) | |
Definition at line 28 of file CraftingRecipe.php.
pocketmine\crafting\CraftingRecipe::getIngredientList | ( | ) |
Returns a list of items needed to craft this recipe. This MUST NOT include Air items or items with a zero count.
Implemented in pocketmine\crafting\ShapedRecipe, and pocketmine\crafting\ShapelessRecipe.
pocketmine\crafting\CraftingRecipe::getResultsFor | ( | CraftingGrid | $grid | ) |
Returns a list of results this recipe will produce when the inputs in the given crafting grid are consumed.
Implemented in pocketmine\crafting\ShapedRecipe, and pocketmine\crafting\ShapelessRecipe.
pocketmine\crafting\CraftingRecipe::matchesCraftingGrid | ( | CraftingGrid | $grid | ) |
Returns whether the given crafting grid meets the requirements to craft this recipe.
Implemented in pocketmine\crafting\ShapedRecipe, and pocketmine\crafting\ShapelessRecipe.