PocketMine
ShapedRecipe Class Reference
Inheritance diagram for ShapedRecipe:
Recipe BigShapedRecipe StonecutterBigShapedRecipe StonecutterShapedRecipe

Public Member Functions

 __construct (Item $result,...$shape)
 
 getWidth ()
 
 getHeight ()
 
 getResult ()
 
 getId ()
 
 setId (UUID $id)
 
 setIngredient ($key, Item $item)
 
 getIngredientMap ()
 
 getIngredient ($x, $y)
 
 getShape ()
 
 registerToCraftingManager ()
 

Protected Member Functions

 fixRecipe ($key, $item)
 

Constructor & Destructor Documentation

__construct ( Item  $result,
  $shape 
)
Parameters
Item$result
string[]$shape
Exceptions

Member Function Documentation

getId ( )
Returns
UUID

Implements Recipe.

getIngredient (   $x,
  $y 
)
Parameters
$x
$y
Returns
null|Item
getIngredientMap ( )
Returns
Item[][]
getResult ( )
Returns

Implements Recipe.

getShape ( )
Returns
string[]
setIngredient (   $key,
Item  $item 
)
Parameters
string$key
Item$item
Returns
$this
Exceptions

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