PHP Class pocketmine\entity\Arrow

Inheritance: extends Projectile
Mostrar archivo 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_oe property

protected $damage

$drag protected_oe property

protected $drag

$gravity protected_oe property

protected $gravity

$height public_oe property

public $height

$isCritical protected_oe property

protected $isCritical

$length public_oe property

public $length

$potionId protected_oe property

protected $potionId

$width public_oe property

public $width