Skip to content

BrewItemEvent ​

class · pocketmine\event\block\BrewItemEvent · source

Extends BlockEvent
Implements Cancellable

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\tile\BrewingStand $brewingStand, int $slot, \pocketmine\item\Item $input, \pocketmine\item\Item $result, \pocketmine\crafting\BrewingRecipe $recipe)

getBrewingStand() ​

php
public function getBrewingStand() : \pocketmine\block\tile\BrewingStand

getInput() ​

php
public function getInput() : \pocketmine\item\Item

getRecipe() ​

php
public function getRecipe() : \pocketmine\crafting\BrewingRecipe

getResult() ​

php
public function getResult() : \pocketmine\item\Item

getSlot() ​

php
public function getSlot() : int

Returns which slot of the brewing stand's inventory the potion is in.

setResult() ​

php
public function setResult(\pocketmine\item\Item $result) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.