PHP Class pocketmine\entity\Living

Inheritance: extends Entity, implements Damageable
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Свойство Type Description
$attackTime
$drag
$gravity
$invisible

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
initEntity ( )

Method Details

attack() public méthode

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

entityBaseTick() public méthode

public entityBaseTick ( $tickDiff = 1, $EnchantL )

getDrops() public méthode

public getDrops ( ) : Item[]
Résultat pocketmine\item\Item[]

getLineOfSight() public méthode

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

getName() abstract public méthode

abstract public getName ( )

getTargetBlock() public méthode

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

hasLineOfSight() public méthode

public hasLineOfSight ( Entity $entity )
$entity Entity

heal() public méthode

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

initEntity() protected méthode

protected initEntity ( )

kill() public méthode

public kill ( )

knockBack() public méthode

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

saveNBT() public méthode

public saveNBT ( )

setHealth() public méthode

public setHealth ( $amount )

Property Details

$attackTime protected_oe property

protected $attackTime

$drag protected_oe property

protected $drag

$gravity protected_oe property

protected $gravity

$invisible protected_oe property

protected $invisible