◆ __construct()
__construct |
( |
Item |
$result, |
|
|
Item |
$ingredient, |
|
|
Item |
$potion |
|
) |
| |
BrewingRecipe constructor.
- Parameters
-
Item | $result | |
Item | $ingredient | |
Item | $potion | |
49 $this->output = clone $result;
50 $this->ingredient = clone $ingredient;
51 $this->potion = clone $potion;
◆ getId()
- Returns
- null
Implements Recipe.
◆ getInput()
- Returns
- Item
90 return clone $this->ingredient;
◆ getPotion()
- Returns
- Item
58 return clone $this->potion;
◆ getResult()
- Returns
- Item
Implements Recipe.
97 return clone $this->output;
◆ registerToCraftingManager()
registerToCraftingManager |
( |
| ) |
|
◆ setId()
- Parameters
-
72 if($this->
id !== null){
73 throw new \InvalidStateException(
"Id is already set");
◆ setInput()
- Parameters
-
83 $this->ingredient = clone $item;
The documentation for this class was generated from the following file:
- src/pocketmine/inventory/BrewingRecipe.php