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

Public Member Functions

 getCraftingRecipeFromIndex (int $index)
 
 getCraftingRecipeIndex ()
 
 getFurnaceRecipeManager (FurnaceType $furnaceType)
 
 getPotionContainerChangeRecipes ()
 
 getPotionTypeRecipes ()
 
 getRecipeRegisteredCallbacks ()
 
 getShapedRecipes ()
 
 getShapelessRecipes ()
 
 matchBrewingRecipe (Item $input, Item $ingredient)
 
 matchRecipe (CraftingGrid $grid, array $outputs)
 
 matchRecipeByOutputs (array $outputs)
 
 registerPotionContainerChangeRecipe (PotionContainerChangeRecipe $recipe)
 
 registerPotionTypeRecipe (PotionTypeRecipe $recipe)
 
 registerShapedRecipe (ShapedRecipe $recipe)
 
 registerShapelessRecipe (ShapelessRecipe $recipe)
 

Static Public Member Functions

static sort (Item $i1, Item $i2)
 

Protected Attributes

array $furnaceRecipeManagers = []
 
array $potionContainerChangeRecipes = []
 
array $potionTypeRecipes = []
 
array $shapedRecipes = []
 
array $shapelessRecipes = []
 

Detailed Description

Definition at line 35 of file CraftingManager.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\crafting\CraftingManager::__construct ( )

Definition at line 82 of file CraftingManager.php.

Member Function Documentation

◆ getCraftingRecipeFromIndex()

pocketmine\crafting\CraftingManager::getCraftingRecipeFromIndex ( int $index)

Definition at line 178 of file CraftingManager.php.

◆ getCraftingRecipeIndex()

pocketmine\crafting\CraftingManager::getCraftingRecipeIndex ( )
Returns
CraftingRecipe[] @phpstan-return array<int, CraftingRecipe>

Definition at line 174 of file CraftingManager.php.

◆ getFurnaceRecipeManager()

pocketmine\crafting\CraftingManager::getFurnaceRecipeManager ( FurnaceType $furnaceType)

Definition at line 182 of file CraftingManager.php.

◆ getPotionContainerChangeRecipes()

pocketmine\crafting\CraftingManager::getPotionContainerChangeRecipes ( )
Returns
PotionContainerChangeRecipe[] @phpstan-return list<PotionContainerChangeRecipe>

Definition at line 198 of file CraftingManager.php.

◆ getPotionTypeRecipes()

pocketmine\crafting\CraftingManager::getPotionTypeRecipes ( )
Returns
PotionTypeRecipe[] @phpstan-return list<PotionTypeRecipe>

Definition at line 190 of file CraftingManager.php.

◆ getRecipeRegisteredCallbacks()

pocketmine\crafting\CraftingManager::getRecipeRegisteredCallbacks ( )

@phpstan-return ObjectSet<\Closure() : void>

Definition at line 99 of file CraftingManager.php.

◆ getShapedRecipes()

pocketmine\crafting\CraftingManager::getShapedRecipes ( )
Returns
ShapedRecipe[][] @phpstan-return array<string, list<ShapedRecipe>>

Definition at line 166 of file CraftingManager.php.

◆ getShapelessRecipes()

pocketmine\crafting\CraftingManager::getShapelessRecipes ( )
Returns
ShapelessRecipe[][] @phpstan-return array<string, list<ShapelessRecipe>>

Definition at line 158 of file CraftingManager.php.

◆ matchBrewingRecipe()

pocketmine\crafting\CraftingManager::matchBrewingRecipe ( Item $input,
Item $ingredient )

Definition at line 287 of file CraftingManager.php.

◆ matchRecipe()

pocketmine\crafting\CraftingManager::matchRecipe ( CraftingGrid $grid,
array $outputs )
Parameters
Item[]$outputs

Definition at line 239 of file CraftingManager.php.

◆ matchRecipeByOutputs()

pocketmine\crafting\CraftingManager::matchRecipeByOutputs ( array $outputs)
Parameters
Item[]$outputs
Returns
CraftingRecipe[]|\Generator @phpstan-return \Generator<int, CraftingRecipe, void, void>

Definition at line 269 of file CraftingManager.php.

◆ registerPotionContainerChangeRecipe()

pocketmine\crafting\CraftingManager::registerPotionContainerChangeRecipe ( PotionContainerChangeRecipe $recipe)

Definition at line 228 of file CraftingManager.php.

◆ registerPotionTypeRecipe()

pocketmine\crafting\CraftingManager::registerPotionTypeRecipe ( PotionTypeRecipe $recipe)

Definition at line 220 of file CraftingManager.php.

◆ registerShapedRecipe()

pocketmine\crafting\CraftingManager::registerShapedRecipe ( ShapedRecipe $recipe)

Definition at line 202 of file CraftingManager.php.

◆ registerShapelessRecipe()

pocketmine\crafting\CraftingManager::registerShapelessRecipe ( ShapelessRecipe $recipe)

Definition at line 211 of file CraftingManager.php.

◆ sort()

static pocketmine\crafting\CraftingManager::sort ( Item $i1,
Item $i2 )
static

Function used to arrange Shapeless Recipe ingredient lists into a consistent order.

Definition at line 104 of file CraftingManager.php.

Member Data Documentation

◆ $furnaceRecipeManagers

array pocketmine\crafting\CraftingManager::$furnaceRecipeManagers = []
protected

Definition at line 59 of file CraftingManager.php.

◆ $potionContainerChangeRecipes

array pocketmine\crafting\CraftingManager::$potionContainerChangeRecipes = []
protected

Definition at line 71 of file CraftingManager.php.

◆ $potionTypeRecipes

array pocketmine\crafting\CraftingManager::$potionTypeRecipes = []
protected

Definition at line 65 of file CraftingManager.php.

◆ $shapedRecipes

array pocketmine\crafting\CraftingManager::$shapedRecipes = []
protected

Definition at line 42 of file CraftingManager.php.

◆ $shapelessRecipes

array pocketmine\crafting\CraftingManager::$shapelessRecipes = []
protected

Definition at line 47 of file CraftingManager.php.


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