PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
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 |
|
final |
Called when the tile's block is destroyed.
Definition at line 117 of file Tile.php.
References pocketmine\block\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.
|
abstractprotected |
Writes additional save data to a CompoundTag, not including generic things like ID and coordinates.
Reimplemented in pocketmine\block\tile\Banner, pocketmine\block\tile\Barrel, pocketmine\block\tile\Beacon, pocketmine\block\tile\Bed, pocketmine\block\tile\Bell, pocketmine\block\tile\BrewingStand, pocketmine\block\tile\Campfire, pocketmine\block\tile\Cauldron, pocketmine\block\tile\Chest, pocketmine\block\tile\ChiseledBookshelf, pocketmine\block\tile\Comparator, pocketmine\block\tile\DaylightSensor, pocketmine\block\tile\EnderChest, pocketmine\block\tile\FlowerPot, pocketmine\block\tile\Furnace, pocketmine\block\tile\Hopper, pocketmine\block\tile\ItemFrame, pocketmine\block\tile\Jukebox, pocketmine\block\tile\Lectern, pocketmine\block\tile\MobHead, pocketmine\block\tile\MonsterSpawner, pocketmine\block\tile\Note, pocketmine\block\tile\ShulkerBox, pocketmine\block\tile\Sign, and pocketmine\block\tile\SporeBlossom.
|
protected |