Skip to content

BrewingFuelUseEvent ​

class · pocketmine\event\block\BrewingFuelUseEvent · source

Extends BlockEvent
Implements Cancellable

Called when a brewing stand consumes a new fuel item.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\tile\BrewingStand $brewingStand)

getBrewingStand() ​

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

getFuelTime() ​

php
public function getFuelTime() : int

Returns how many times the fuel can be used for potion brewing before it runs out.

setFuelTime() ​

php
public function setFuelTime(int $fuelTime) : void

Sets how many times the fuel can be used for potion brewing before it runs out.

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