mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Added events
This commit is contained in:
@ -21,8 +21,18 @@
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
use pocketmine\entity\Entity;
|
||||
|
||||
class Potion extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(self::POTION, $meta, $count, "Potion");
|
||||
}
|
||||
|
||||
public function canBeConsumed() : bool{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function onConsume(Entity $entity){
|
||||
// TODO: Implement potions
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user