PHP Class pocketmine\entity\ThrownPotion

Inheritance: extends Projectile
Datei anzeigen Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$height
$length
$width

Protected Properties

Property Type Description
$drag
$gravity

Public Methods

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

Method Details

__construct() public method

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

getPotionId() public method

public getPotionId ( ) : integer
return integer

kill() public method

public kill ( )

onUpdate() public method

public onUpdate ( $currentTick )

spawnTo() public method

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

Property Details

$drag protected_oe property

protected $drag

$gravity protected_oe property

protected $gravity

$height public_oe property

public $height

$length public_oe property

public $length

$width public_oe property

public $width