PHP Class pocketmine\entity\Creature

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

Public Properties

Property Type Description
$attackingTick

Public Methods

Method Description
attack ( $damage, EntityDamageEvent $source )
getMyPitch ( Vector3 $from, Vector3 $to ) : float | integer
getMyYaw ( $mx, $mz ) : float | integer
ifjump ( Level $level, Vector3 $v3, boolean $hate = false, boolean $reason = false ) : boolean | float | string
onUpdate ( $tick )
whatBlock ( Level $level, $v3 )
willMove ( $distance = 36 )

Method Details

attack() public method

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

getMyPitch() public method

public getMyPitch ( Vector3 $from, Vector3 $to ) : float | integer
$from pocketmine\math\Vector3
$to pocketmine\math\Vector3
return float | integer 获取pitch角度

getMyYaw() public method

public getMyYaw ( $mx, $mz ) : float | integer
$mx
$mz
return float | integer 获取yaw角度

ifjump() public method

public ifjump ( Level $level, Vector3 $v3, boolean $hate = false, boolean $reason = false ) : boolean | float | string
$level pocketmine\level\Level
$v3 pocketmine\math\Vector3
$hate boolean
$reason boolean
return boolean | float | string 判断某坐标是否可以行走 并给出原因

onUpdate() public method

public onUpdate ( $tick )

whatBlock() public method

public whatBlock ( Level $level, $v3 )
$level pocketmine\level\Level

willMove() public method

public willMove ( $distance = 36 )

Property Details

$attackingTick public_oe property

public $attackingTick