PHP Class pocketmine\entity\PrimedTNT

Inheritance: extends Entity, implements pocketmine\entity\Explosive
Show file Open project: iTXTech/Genisys

Public Properties

Property Type Description
$canCollide
$height
$length
$width

Protected Properties

Property Type Description
$drag
$fuse
$gravity

Public Methods

Method Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, boolean $dropItem = true )
attack ( $damage, EntityDamageEvent $source )
canCollideWith ( Entity $entity )
explode ( )
onUpdate ( $currentTick )
saveNBT ( )
spawnTo ( Player $player )

Protected Methods

Method Description
initEntity ( )

Method Details

__construct() public method

public __construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, boolean $dropItem = true )
$chunk pocketmine\level\format\FullChunk
$nbt pocketmine\nbt\tag\CompoundTag
$dropItem boolean

attack() public method

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

canCollideWith() public method

public canCollideWith ( Entity $entity )
$entity Entity

explode() public method

public explode ( )

initEntity() protected method

protected initEntity ( )

onUpdate() public method

public onUpdate ( $currentTick )

saveNBT() public method

public saveNBT ( )

spawnTo() public method

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

Property Details

$canCollide public property

public $canCollide

$drag protected property

protected $drag

$fuse protected property

protected $fuse

$gravity protected property

protected $gravity

$height public property

public $height

$length public property

public $length

$width public property

public $width