PHP Class pocketmine\entity\Arrow

Inheritance: extends Projectile
Show file Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$height
$length
$width

Protected Properties

Property Type Description
$damage
$drag
$gravity
$isCritical
$potionId

Public Methods

Method Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, Entity $shootingEntity = null, $critical = false )
getPotionId ( ) : integer
onUpdate ( $currentTick )
spawnTo ( Player $player )

Method Details

__construct() public method

public __construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, Entity $shootingEntity = null, $critical = false )
$chunk pocketmine\level\format\FullChunk
$nbt pocketmine\nbt\tag\CompoundTag
$shootingEntity Entity

getPotionId() public method

public getPotionId ( ) : integer
return integer

onUpdate() public method

public onUpdate ( $currentTick )

spawnTo() public method

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

Property Details

$damage protected property

protected $damage

$drag protected property

protected $drag

$gravity protected property

protected $gravity

$height public property

public $height

$isCritical protected property

protected $isCritical

$length public property

public $length

$potionId protected property

protected $potionId

$width public property

public $width