pocketmine\event\entity\EntityDamageEvent::setRateDamage PHP Method

setRateDamage() public method

public setRateDamage ( float $damage, integer $type = self::MODIFIER_BASE )
$damage float
$type integer Notice:If you want to add/reduce the damage without reducing by Armor or effect. set a new Damage using setDamage Notice:If you want to add/reduce the damage within reducing by Armor of effect. Plz change the MODIFIER_BASE Notice:If you want to add/reduce the damage by multiplying. Plz use this function.
    public function setRateDamage($damage, $type = self::MODIFIER_BASE)
    {
        $this->rateModifiers[$type] = $damage;
    }