pocketmine\item\FoodSource::getFoodRestore PHP Method

getFoodRestore() public method

public getFoodRestore ( ) : integer
return integer
    public function getFoodRestore() : int;

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();
 }