Added events

This commit is contained in:
PEMapModder
2016-02-11 22:07:04 +08:00
parent 8807617480
commit e79976bdac
18 changed files with 405 additions and 53 deletions

View File

@ -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
}
}