pocketmine\item\Potion::getEffects PHP Méthode

getEffects() public méthode

public getEffects ( ) : array
Résultat array
    public function getEffects() : array
    {
        return self::getEffectsById($this->meta);
    }

Usage Example

 public function __construct(Entity $entity, Potion $potion)
 {
     $this->entity = $entity;
     $this->potion = $potion;
     $this->effects = $potion->getEffects();
 }