PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\inventory\ShapelessRecipe Class Reference
+ Inheritance diagram for pocketmine\inventory\ShapelessRecipe:
+ Collaboration diagram for pocketmine\inventory\ShapelessRecipe:

Public Member Functions

 __construct (Item $result)
 
 getResult ()
 
 addIngredient (Item $item)
 
 removeIngredient (Item $item)
 
 getIngredientList ()
 
 getIngredientCount ()
 
 registerToCraftingManager ()
 

Detailed Description

Definition at line 27 of file ShapelessRecipe.php.

Member Function Documentation

pocketmine\inventory\ShapelessRecipe::addIngredient ( Item  $item)
Parameters
Item$item
Returns
ShapelessRecipe
Exceptions
\InvalidArgumentException

Definition at line 49 of file ShapelessRecipe.php.

pocketmine\inventory\ShapelessRecipe::getIngredientCount ( )
Returns
int

Definition at line 99 of file ShapelessRecipe.php.

pocketmine\inventory\ShapelessRecipe::getIngredientList ( )
Returns
Item[]

Definition at line 87 of file ShapelessRecipe.php.

Referenced by pocketmine\inventory\CraftingManager\registerShapelessRecipe().

+ Here is the caller graph for this function:

pocketmine\inventory\ShapelessRecipe::getResult ( )
Returns

Implements pocketmine\inventory\Recipe.

Definition at line 38 of file ShapelessRecipe.php.

Referenced by pocketmine\inventory\CraftingManager\registerShapelessRecipe().

+ Here is the caller graph for this function:

pocketmine\inventory\ShapelessRecipe::removeIngredient ( Item  $item)
Parameters
Item$item
Returns
$this

Definition at line 70 of file ShapelessRecipe.php.


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