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

Public Member Functions

 __construct (Item $result, array $shape=[])
 
 setIngredient ($key, Item $item)
 
 getIngredientMap ()
 
 getShape ()
 
 registerToCraftingManager ()
 
 getResult ()
 

Detailed Description

Definition at line 27 of file ShapedRecipe.php.

Constructor & Destructor Documentation

pocketmine\inventory\ShapedRecipe::__construct ( Item  $result,
array  $shape = [] 
)
Parameters
Item$result
string[]$shape
Exceptions
\Exception

Definition at line 43 of file ShapedRecipe.php.

Member Function Documentation

pocketmine\inventory\ShapedRecipe::getIngredientMap ( )
Returns
Item[]

Definition at line 84 of file ShapedRecipe.php.

pocketmine\inventory\Recipe::getResult ( )
inherited
pocketmine\inventory\ShapedRecipe::getShape ( )
Returns
string[]

Definition at line 100 of file ShapedRecipe.php.

pocketmine\inventory\ShapedRecipe::setIngredient (   $key,
Item  $item 
)
Parameters
string$key
Item$item
Returns
$this
Exceptions
\Exception

Definition at line 71 of file ShapedRecipe.php.


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