PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
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 176 of file CraftingManager.php.

◆ getCraftingRecipeIndex()

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

Definition at line 172 of file CraftingManager.php.

◆ getFurnaceRecipeManager()

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

Definition at line 180 of file CraftingManager.php.

◆ getPotionContainerChangeRecipes()

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

Definition at line 196 of file CraftingManager.php.

◆ getPotionTypeRecipes()

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

Definition at line 188 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 164 of file CraftingManager.php.

◆ getShapelessRecipes()

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

Definition at line 156 of file CraftingManager.php.

◆ matchBrewingRecipe()

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

Definition at line 285 of file CraftingManager.php.

◆ matchRecipe()

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

Definition at line 237 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 267 of file CraftingManager.php.

◆ registerPotionContainerChangeRecipe()

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

Definition at line 226 of file CraftingManager.php.

◆ registerPotionTypeRecipe()

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

Definition at line 218 of file CraftingManager.php.

◆ registerShapedRecipe()

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

Definition at line 200 of file CraftingManager.php.

◆ registerShapelessRecipe()

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

Definition at line 209 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: