PHP Class pocketmine\entity\Projectile

Inheritance: extends Entity
显示文件 Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$hadCollision
$shootingEntity Entity

Protected Properties

Property Type Description
$damage

Public Methods

Method Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, Entity $shootingEntity = null )
attack ( $damage, EntityDamageEvent $source )
canCollideWith ( Entity $entity )
onUpdate ( $currentTick )
saveNBT ( )

Protected Methods

Method Description
initEntity ( )

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

attack() public method

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

canCollideWith() public method

public canCollideWith ( Entity $entity )
$entity Entity

initEntity() protected method

protected initEntity ( )

onUpdate() public method

public onUpdate ( $currentTick )

saveNBT() public method

public saveNBT ( )

Property Details

$damage protected_oe property

protected $damage

$hadCollision public_oe property

public $hadCollision

$shootingEntity public_oe property

public Entity,pocketmine\entity $shootingEntity
return Entity