PHP Class pocketmine\event\entity\EntityDamageByEntityEvent

Inheritance: extends EntityDamageEvent
Exibir arquivo Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( Entity $damager, Entity $entity, integer $cause, integer | int[] $damage, float $knockBack = 0.4 )
getDamager ( ) : Entity
getKnockBack ( ) : float
setKnockBack ( float $knockBack )

Protected Methods

Method Description
addAttackerModifiers ( Entity $damager )

Method Details

__construct() public method

public __construct ( Entity $damager, Entity $entity, integer $cause, integer | int[] $damage, float $knockBack = 0.4 )
$damager pocketmine\entity\Entity
$entity pocketmine\entity\Entity
$cause integer
$damage integer | int[]
$knockBack float

addAttackerModifiers() protected method

protected addAttackerModifiers ( Entity $damager )
$damager pocketmine\entity\Entity

getDamager() public method

public getDamager ( ) : Entity
return pocketmine\entity\Entity

getKnockBack() public method

public getKnockBack ( ) : float
return float

setKnockBack() public method

public setKnockBack ( float $knockBack )
$knockBack float