Skip to content

OminousBottle 5.46.0 ​

class · pocketmine\item\OminousBottle · source

Extends Item
Implements ConsumableItem

Drinking it gives Bad Omen for 100 minutes. The level of the effect is stored in the item's meta.

Constants ​

EFFECT_DURATION ​

php
public const EFFECT_DURATION = 120000

Bad Omen duration in ticks (100 minutes)

MAX_AMPLIFIER ​

php
public const MAX_AMPLIFIER = 4

MIN_AMPLIFIER ​

php
public const MIN_AMPLIFIER = 0

Methods ​

canStartUsingItem() ​

php
public function canStartUsingItem(\pocketmine\player\Player $player) : bool

describeState() protected ​

php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getAdditionalEffects() ​

php
public function getAdditionalEffects() : array

getAmplifier() ​

php
public function getAmplifier() : int

Returns the amplifier of the Bad Omen effect given when drunk (0 = Bad Omen I).

getResidue() ​

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

onConsume() ​

php
public function onConsume(\pocketmine\entity\Living $consumer) : void

setAmplifier() ​

php
public function setAmplifier(int $amplifier) : self

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