PHP Class pocketmine\inventory\ShapedRecipeFromJson

Inheritance: extends ShapedRecipe
Datei anzeigen Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( Item $result, integer $height, integer $width )
addIngredient ( $x, $y, Item $item )
getHeight ( )
getId ( )
getIngredient ( $x, $y ) : null | Item
getIngredientMap ( ) : Item[][]
getResult ( )
getShape ( ) : string[]
getWidth ( )
registerToCraftingManager ( )
setId ( UUID $id )
setIngredient ( string $key, Item $item )

Protected Methods

Method Description
fixRecipe ( $key, $item )

Method Details

__construct() public method

public __construct ( Item $result, integer $height, integer $width )
$result pocketmine\item\Item
$height integer
$width integer

addIngredient() public method

public addIngredient ( $x, $y, Item $item )
$item pocketmine\item\Item

fixRecipe() protected method

protected fixRecipe ( $key, $item )

getHeight() public method

public getHeight ( )

getId() public method

public getId ( )

getIngredient() public method

public getIngredient ( $x, $y ) : null | Item
$x
$y
return null | pocketmine\item\Item

getIngredientMap() public method

public getIngredientMap ( ) : Item[][]
return pocketmine\item\Item[][]

getResult() public method

public getResult ( )

getShape() public method

public getShape ( ) : string[]
return string[]

getWidth() public method

public getWidth ( )

registerToCraftingManager() public method

setId() public method

public setId ( UUID $id )
$id pocketmine\utils\UUID

setIngredient() public method

public setIngredient ( string $key, Item $item )
$key string
$item pocketmine\item\Item