PHP Class pocketmine\inventory\ShapedRecipe

Inheritance: implements pocketmine\inventory\Recipe
显示文件 Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( Item $result, variadic $shape )
getHeight ( )
getId ( )
getIngredient ( $x, $y ) : null | Item
getIngredientList ( ) : 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, variadic $shape )
$result pocketmine\item\Item
$shape variadic

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

getIngredientList() public method

public getIngredientList ( ) : Item[]
return 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