PHP Class pocketmine\entity\Zombie

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

Public Properties

Property Type Description
$drag
$dropExp
$gravity
$height
$length
$width

Public Methods

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

Private Methods

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

Method Details

attack() public method

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

getDrops() public method

public getDrops ( )

getName() public method

仇恨计时器
public getName ( ) : string
return string

initEntity() public method

public initEntity ( )

onUpdate() public method

public onUpdate ( $currentTick )

spawnTo() public method

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