PHP Class pocketmine\entity\Zombie

Inheritance: extends Monster
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$drag
$dropExp
$gravity
$height
$length
$width

Méthodes publiques

Méthode Description
attack ( $damage, EntityDamageEvent $source )
getDrops ( )
getName ( ) : string 仇恨计时器
initEntity ( )
onUpdate ( $currentTick )
spawnTo ( Player $player )

Private Methods

Méthode Description
generateDirection ( Vector3 $pos )
generateRandomDirection ( )
getNearestPlayer ( )
getVelY ( )
toFloat ( $num ) * 返回一个一位小数

Method Details

attack() public méthode

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

getDrops() public méthode

public getDrops ( )

getName() public méthode

仇恨计时器
public getName ( ) : string
Résultat string

initEntity() public méthode

public initEntity ( )

onUpdate() public méthode

public onUpdate ( $currentTick )

spawnTo() public méthode

public spawnTo ( Player $player )
$player pocketmine\Player

Property Details

$drag public_oe property

public $drag

$dropExp public_oe property

public $dropExp

$gravity public_oe property

public $gravity

$height public_oe property

public $height

$length public_oe property

public $length

$width public_oe property

public $width