PHP Class pocketmine\entity\FlyingAnimal

Inheritance: extends Creature, implements pocketmine\entity\Ageable
ファイルを表示 Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$flyDirection pocketmine\math\Vector3
$flySpeed
$highestY
$switchDirectionTicks

Protected Properties

Property Type Description
$drag
$gravity

Public Methods

Method Description
attack ( $damage, EntityDamageEvent $source )
initEntity ( )
isBaby ( )
onUpdate ( $currentTick )

Private Methods

Method Description
generateRandomDirection ( )

Method Details

attack() public method

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

initEntity() public method

public initEntity ( )

isBaby() public method

public isBaby ( )

onUpdate() public method

public onUpdate ( $currentTick )

Property Details

$drag protected_oe property

protected $drag

$flyDirection public_oe property

public Vector3,pocketmine\math $flyDirection
return pocketmine\math\Vector3

$flySpeed public_oe property

public $flySpeed

$gravity protected_oe property

protected $gravity

$highestY public_oe property

public $highestY

$switchDirectionTicks public_oe property

public $switchDirectionTicks