CraftingManager
Properties
$furnaceRecipeManagers protected
php
protected array $furnaceRecipeManagers$potionContainerChangeRecipes protected
php
protected array $potionContainerChangeRecipes$potionTypeRecipes protected
php
protected array $potionTypeRecipes$shapedRecipes protected
php
protected array $shapedRecipes$shapelessRecipes protected
php
protected array $shapelessRecipes$smithingRecipes 5.46.0 protected
php
protected array $smithingRecipes$specialCraftingRecipes 5.46.0 protected
php
protected array $specialCraftingRecipesCrafting recipes that are neither shaped nor shapeless (e.g. the decorated pot), matched by inspecting the grid.
Methods
__construct()
php
public function __construct()getCraftingRecipeFromIndex()
php
public function getCraftingRecipeFromIndex(int $index) : ?\pocketmine\crafting\CraftingRecipegetCraftingRecipeIndex()
php
public function getCraftingRecipeIndex() : arraygetFurnaceRecipeManager()
php
public function getFurnaceRecipeManager(\pocketmine\crafting\FurnaceType $furnaceType) : \pocketmine\crafting\FurnaceRecipeManagergetPotionContainerChangeRecipes()
php
public function getPotionContainerChangeRecipes() : arraygetPotionTypeRecipes()
php
public function getPotionTypeRecipes() : arraygetRecipeRegisteredCallbacks()
php
public function getRecipeRegisteredCallbacks() : \pocketmine\utils\ObjectSetgetShapedRecipes()
php
public function getShapedRecipes() : arraygetShapelessRecipes()
php
public function getShapelessRecipes() : arraygetSmithingRecipeFromIndex() 5.46.0
php
public function getSmithingRecipeFromIndex(int $index) : ?\pocketmine\crafting\SmithingRecipegetSmithingRecipes() 5.46.0
php
public function getSmithingRecipes() : arraygetSpecialCraftingRecipes() 5.46.0
php
public function getSpecialCraftingRecipes() : arraymatchBrewingRecipe()
php
public function matchBrewingRecipe(\pocketmine\item\Item $input, \pocketmine\item\Item $ingredient) : ?\pocketmine\crafting\BrewingRecipematchRecipe()
php
public function matchRecipe(\pocketmine\crafting\CraftingGrid $grid, array $outputs) : ?\pocketmine\crafting\CraftingRecipematchRecipeByGrid() 5.46.0
php
public function matchRecipeByGrid(\pocketmine\crafting\CraftingGrid $grid) : ?\pocketmine\crafting\CraftingRecipeFinds the crafting recipe matching the contents of the grid, without knowing the output (e.g. for crafters). Results for grids without NBT are cached.
matchRecipeByOutputs()
php
public function matchRecipeByOutputs(array $outputs) : \GeneratorregisterPotionContainerChangeRecipe()
php
public function registerPotionContainerChangeRecipe(\pocketmine\crafting\PotionContainerChangeRecipe $recipe) : voidregisterPotionTypeRecipe()
php
public function registerPotionTypeRecipe(\pocketmine\crafting\PotionTypeRecipe $recipe) : voidregisterShapedRecipe()
php
public function registerShapedRecipe(\pocketmine\crafting\ShapedRecipe $recipe) : voidregisterShapelessRecipe()
php
public function registerShapelessRecipe(\pocketmine\crafting\ShapelessRecipe $recipe) : voidregisterSmithingRecipe() 5.46.0
php
public function registerSmithingRecipe(\pocketmine\crafting\SmithingRecipe $recipe) : voidregisterSpecialCraftingRecipe() 5.46.0
php
public function registerSpecialCraftingRecipe(\pocketmine\crafting\CraftingRecipe $recipe) : voidRegisters a crafting recipe that is neither shaped nor shapeless. It is matched against the crafting grid with CraftingRecipe::matchesCraftingGrid() and its results come from CraftingRecipe::getResultsFor().
sort()
php
public static function sort(\pocketmine\item\Item $i1, \pocketmine\item\Item $i2) : intDeprecated
Deprecated.
Function used to arrange Shapeless Recipe ingredient lists into a consistent order.
