PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\crafting\CraftingRecipe Interface Reference
+ Inheritance diagram for pocketmine\crafting\CraftingRecipe:
+ Collaboration diagram for pocketmine\crafting\CraftingRecipe:

Public Member Functions

 getIngredientList ()
 
 getResultsFor (CraftingGrid $grid)
 
 matchesCraftingGrid (CraftingGrid $grid)
 

Detailed Description

Definition at line 28 of file CraftingRecipe.php.

Member Function Documentation

◆ getIngredientList()

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.

Returns
RecipeIngredient[] @phpstan-return list<RecipeIngredient>

Implemented in pocketmine\crafting\ShapedRecipe, and pocketmine\crafting\ShapelessRecipe.

◆ getResultsFor()

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.

Returns
Item[] @phpstan-return list<Item>

Implemented in pocketmine\crafting\ShapedRecipe, and pocketmine\crafting\ShapelessRecipe.

◆ matchesCraftingGrid()

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.


The documentation for this interface was generated from the following file: