Skip to content

TNT ​

class · pocketmine\block\TNT · source

Extends Opaque

Properties ​

$unstable protected ​

php
protected bool $unstable

$worksUnderwater protected ​

php
protected bool $worksUnderwater

Methods ​

describeBlockItemState() ​

php
public function describeBlockItemState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

ignite() ​

php
public function ignite(int $fuse = 80) : void

isUnstable() ​

php
public function isUnstable() : bool

onBreak() ​

php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onIncinerate() ​

php
public function onIncinerate() : void

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

onProjectileHit() ​

php
public function onProjectileHit(\pocketmine\entity\projectile\Projectile $projectile, \pocketmine\math\RayTraceResult $hitResult) : void

setUnstable() ​

php
public function setUnstable(bool $unstable) : self

setWorksUnderwater() ​

php
public function setWorksUnderwater(bool $worksUnderwater) : self

worksUnderwater() ​

php
public function worksUnderwater() : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.