PocketMine-MP 5.23.3 git-fbaa125d0ce21ffef98fc1630881a92bedfbaa73
Loading...
Searching...
No Matches
pocketmine\block\tile\Tile Class Reference
+ Inheritance diagram for pocketmine\block\tile\Tile:
+ Collaboration diagram for pocketmine\block\tile\Tile:

Public Member Functions

 __construct (World $world, Vector3 $pos)
 
 close ()
 
 copyDataFromItem (Item $item)
 
 getBlock ()
 
 getCleanedNBT ()
 
 getPosition ()
 
 isClosed ()
 
 onBlockDestroyed ()
 
 readSaveData (CompoundTag $nbt)
 
 saveNBT ()
 

Public Attributes

bool $closed = false
 
const TAG_ID = "id"
 
const TAG_X = "x"
 
const TAG_Y = "y"
 
const TAG_Z = "z"
 

Protected Member Functions

 onBlockDestroyedHook ()
 
 writeSaveData (CompoundTag $nbt)
 

Protected Attributes

Position $position
 
TimingsHandler $timings
 

Detailed Description

Definition at line 42 of file Tile.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\block\tile\Tile::__construct ( World $world,
Vector3 $pos )

Definition at line 53 of file Tile.php.

◆ __destruct()

pocketmine\block\tile\Tile::__destruct ( )

Definition at line 110 of file Tile.php.

Member Function Documentation

◆ close()

pocketmine\block\tile\Tile::close ( )

Definition at line 129 of file Tile.php.

◆ copyDataFromItem()

pocketmine\block\tile\Tile::copyDataFromItem ( Item $item)

Definition at line 92 of file Tile.php.

◆ getBlock()

pocketmine\block\tile\Tile::getBlock ( )

Definition at line 98 of file Tile.php.

◆ getCleanedNBT()

pocketmine\block\tile\Tile::getCleanedNBT ( )

Definition at line 82 of file Tile.php.

◆ getPosition()

pocketmine\block\tile\Tile::getPosition ( )

Definition at line 102 of file Tile.php.

◆ isClosed()

pocketmine\block\tile\Tile::isClosed ( )

Definition at line 106 of file Tile.php.

◆ onBlockDestroyed()

pocketmine\block\tile\Tile::onBlockDestroyed ( )
final

Called when the tile's block is destroyed.

Definition at line 117 of file Tile.php.

References pocketmine\block\tile\onBlockDestroyedHook().

+ Here is the call graph for this function:

◆ onBlockDestroyedHook()

pocketmine\block\tile\Tile::onBlockDestroyedHook ( )
protected

Override this method to do actions you need to do when this tile is destroyed due to block being broken.

Reimplemented in pocketmine\block\tile\Chest, pocketmine\block\tile\Jukebox, and pocketmine\block\tile\ShulkerBox.

Definition at line 125 of file Tile.php.

◆ saveNBT()

pocketmine\block\tile\Tile::saveNBT ( )

Definition at line 70 of file Tile.php.

◆ writeSaveData()

Member Data Documentation

◆ $closed

bool pocketmine\block\tile\Tile::$closed = false

Definition at line 50 of file Tile.php.

◆ $position

Position pocketmine\block\tile\Tile::$position
protected

Definition at line 49 of file Tile.php.

◆ $timings

TimingsHandler pocketmine\block\tile\Tile::$timings
protected

Definition at line 51 of file Tile.php.

◆ TAG_ID

const pocketmine\block\tile\Tile::TAG_ID = "id"

Definition at line 44 of file Tile.php.

◆ TAG_X

const pocketmine\block\tile\Tile::TAG_X = "x"

Definition at line 45 of file Tile.php.

◆ TAG_Y

const pocketmine\block\tile\Tile::TAG_Y = "y"

Definition at line 46 of file Tile.php.

◆ TAG_Z

const pocketmine\block\tile\Tile::TAG_Z = "z"

Definition at line 47 of file Tile.php.


The documentation for this class was generated from the following file: