pocketmine\item\FoodSource::getSaturationRestore PHP Method

getSaturationRestore() public method

public getSaturationRestore ( ) : float
return float
    public function getSaturationRestore() : float;

Usage Example

Example #1
0
 public function __construct(Entity $entity, FoodSource $foodSource)
 {
     $this->entity = $entity;
     $this->foodSource = $foodSource;
     $this->foodRestore = $foodSource->getFoodRestore();
     $this->saturationRestore = $foodSource->getSaturationRestore();
     $this->residue = $foodSource->getResidue();
     $this->additionalEffects = $foodSource->getAdditionalEffects();
 }