CraftingRecipe
Methods
getIngredientList()
php
public function getIngredientList() : arrayReturns a list of items needed to craft this recipe. This MUST NOT include Air items or items with a zero count.
getResultsFor()
php
public function getResultsFor(\pocketmine\crafting\CraftingGrid $grid) : arrayReturns a list of results this recipe will produce when the inputs in the given crafting grid are consumed.
matchesCraftingGrid()
php
public function matchesCraftingGrid(\pocketmine\crafting\CraftingGrid $grid) : boolReturns whether the given crafting grid meets the requirements to craft this recipe.
