Skip to content

CraftingRecipe ​

interface · pocketmine\crafting\CraftingRecipe · source

Methods ​

getIngredientList() ​

php
public function getIngredientList() : array

Returns 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) : array

Returns 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) : bool

Returns whether the given crafting grid meets the requirements to craft this recipe.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.