PHP Class pocketmine\inventory\ShapelessRecipe

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

Public Methods

Method Description
__construct ( Item $result )
addIngredient ( Item $item )
getId ( )
getIngredientCount ( ) : integer
getIngredientList ( ) : Item[]
getResult ( )
registerToCraftingManager ( )
removeIngredient ( Item $item )
setId ( UUID $id )

Method Details

__construct() public method

public __construct ( Item $result )
$result pocketmine\item\Item

addIngredient() public method

public addIngredient ( Item $item )
$item pocketmine\item\Item

getId() public method

public getId ( )

getIngredientCount() public method

public getIngredientCount ( ) : integer
return integer

getIngredientList() public method

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

getResult() public method

public getResult ( )

registerToCraftingManager() public method

removeIngredient() public method

public removeIngredient ( Item $item )
$item pocketmine\item\Item

setId() public method

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