Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
ShapedRecipeFromJson Class Reference
Inheritance diagram for ShapedRecipeFromJson:
[legend]
Collaboration diagram for ShapedRecipeFromJson:
[legend]

Public Member Functions

 __construct (Item $result, $height, $width)
 
 getWidth ()
 
 getHeight ()
 
 getResult ()
 
 getId ()
 
 setId (UUID $id)
 
 addIngredient ($x, $y, Item $item)
 
 setIngredient ($key, Item $item)
 
 getIngredientMap ()
 
 getIngredient ($x, $y)
 
 getShape ()
 
 registerToCraftingManager ()
 
- Public Member Functions inherited from ShapedRecipe
 __construct (Item $result, $height, $width)
 
 getWidth ()
 
 getHeight ()
 
 getResult ()
 
 getId ()
 
 setId (UUID $id)
 
 addIngredient ($x, $y, Item $item)
 
 setIngredient ($key, Item $item)
 
 getIngredientMap ()
 
 getIngredientList ()
 
 getIngredient ($x, $y)
 
 getShape ()
 
 registerToCraftingManager ()
 

Protected Member Functions

 fixRecipe ($key, $item)
 
- Protected Member Functions inherited from ShapedRecipe
 fixRecipe ($key, $item)
 

Constructor & Destructor Documentation

__construct ( Item  $result,
  $height,
  $width 
)
Parameters
Item$result
int$height
int$width
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: