PHP Class pocketmine\entity\Living

Inheritance: extends Entity, implements Damageable
Show file Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$attackTime
$drag
$gravity
$invisible

Public Methods

Method Description
attack ( $damage, EntityDamageEvent $source )
entityBaseTick ( $tickDiff = 1, $EnchantL )
getDrops ( ) : Item[]
getLineOfSight ( integer $maxDistance, integer $maxLength, array $transparent = [] ) : Block[]
getName ( )
getTargetBlock ( integer $maxDistance, array $transparent = [] ) : Block
hasLineOfSight ( Entity $entity )
heal ( $amount, EntityRegainHealthEvent $source )
kill ( )
knockBack ( Entity $attacker, $damage, $x, $z, $base = 0.4 )
saveNBT ( )
setHealth ( $amount )

Protected Methods

Method Description
initEntity ( )

Method Details

attack() public method

public attack ( $damage, EntityDamageEvent $source )
$source pocketmine\event\entity\EntityDamageEvent

entityBaseTick() public method

public entityBaseTick ( $tickDiff = 1, $EnchantL )

getDrops() public method

public getDrops ( ) : Item[]
return pocketmine\item\Item[]

getLineOfSight() public method

public getLineOfSight ( integer $maxDistance, integer $maxLength, array $transparent = [] ) : Block[]
$maxDistance integer
$maxLength integer
$transparent array
return pocketmine\block\Block[]

getName() abstract public method

abstract public getName ( )

getTargetBlock() public method

public getTargetBlock ( integer $maxDistance, array $transparent = [] ) : Block
$maxDistance integer
$transparent array
return pocketmine\block\Block

hasLineOfSight() public method

public hasLineOfSight ( Entity $entity )
$entity Entity

heal() public method

public heal ( $amount, EntityRegainHealthEvent $source )
$source pocketmine\event\entity\EntityRegainHealthEvent

initEntity() protected method

protected initEntity ( )

kill() public method

public kill ( )

knockBack() public method

public knockBack ( Entity $attacker, $damage, $x, $z, $base = 0.4 )
$attacker Entity

saveNBT() public method

public saveNBT ( )

setHealth() public method

public setHealth ( $amount )

Property Details

$attackTime protected property

protected $attackTime

$drag protected property

protected $drag

$gravity protected property

protected $gravity

$invisible protected property

protected $invisible