Tile
Constants
TAG_ID
php
public const TAG_ID = "id"TAG_X
php
public const TAG_X = "x"TAG_Y
php
public const TAG_Y = "y"TAG_Z
php
public const TAG_Z = "z"Properties
$closed
php
public bool $closed$position protected
php
protected \pocketmine\world\Position $position$timings protected
php
protected \pocketmine\timings\TimingsHandler $timingsMethods
__construct()
php
public function __construct(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos)__destruct()
php
public function __destruct()close()
php
public function close() : voidgetBlock()
php
public function getBlock() : \pocketmine\block\BlockgetCleanedNBT()
php
public function getCleanedNBT() : ?\pocketmine\nbt\tag\CompoundTaggetPosition()
php
public function getPosition() : \pocketmine\world\PositionisClosed()
php
public function isClosed() : boolonBlockDestroyed()
php
final public function onBlockDestroyed() : voidCalled when the tile's block is destroyed.
onBlockDestroyedHook() protected
php
protected function onBlockDestroyedHook() : voidOverride this method to do actions you need to do when this tile is destroyed due to block being broken.
saveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagwriteSaveData() protected
php
abstract protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidWrites additional save data to a CompoundTag, not including generic things like ID and coordinates.
