PocketMine
CraftingManager Class Reference

Public Member Functions

 sort (Item $i1, Item $i2)
 
 getRecipe (UUID $id)
 
 getRecipes ()
 
 getFurnaceRecipes ()
 
 matchFurnaceRecipe (Item $input)
 
 registerShapelessRecipe (ShapelessRecipe $recipe)
 
 registerFurnaceRecipe (FurnaceRecipe $recipe)
 
 matchRecipe (ShapelessRecipe $recipe)
 
 registerRecipe (Recipe $recipe)
 

Data Fields

 $recipes = []
 
 $furnaceRecipes = []
 

Protected Member Functions

 registerFurnace ()
 
 registerStonecutter ()
 
 registerFood ()
 
 registerArmor ()
 
 registerWeapons ()
 
 registerTools ()
 
 registerDyes ()
 
 registerIngots ()
 

Protected Attributes

 $recipeLookup = []
 

Member Function Documentation

getFurnaceRecipes ( )
Returns
FurnaceRecipe[]
getRecipe ( UUID  $id)
Parameters
UUID$id
Returns
Recipe
getRecipes ( )
Returns
Recipe[]
matchFurnaceRecipe ( Item  $input)
Parameters
Item$input
Returns
FurnaceRecipe
matchRecipe ( ShapelessRecipe  $recipe)
Parameters
ShapelessRecipe$recipe
Returns
bool
registerFurnaceRecipe ( FurnaceRecipe  $recipe)
Parameters
FurnaceRecipe$recipe
registerRecipe ( Recipe  $recipe)
Parameters
Recipe$recipe
registerShapelessRecipe ( ShapelessRecipe  $recipe)
Parameters
ShapelessRecipe$recipe

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