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

Public Member Functions

 __construct (World $world, Vector3 $pos)
 
 canOpenWith (string $key)
 
 close ()
 
 copyDataFromItem (Item $item)
 
 getBlock ()
 
 getCleanedNBT ()
 
 getInventory ()
 
 getLastInteractedSlot ()
 
 getPosition ()
 
 getRealInventory ()
 
 isClosed ()
 
 onBlockDestroyed ()
 
 readSaveData (CompoundTag $nbt)
 
 saveNBT ()
 
 setLastInteractedSlot (?ChiseledBookshelfSlot $lastInteractedSlot)
 

Public Attributes

bool $closed = false
 
const TAG_ID = "id"
 
const TAG_ITEMS = "Items"
 
const TAG_LOCK = "Lock"
 
const TAG_X = "x"
 
const TAG_Y = "y"
 
const TAG_Z = "z"
 

Protected Member Functions

 loadItems (CompoundTag $tag)
 
 onBlockDestroyedHook ()
 
 saveItems (CompoundTag $tag)
 
 writeSaveData (CompoundTag $nbt)
 

Protected Attributes

Position $position
 
TimingsHandler $timings
 

Detailed Description

Definition at line 40 of file tile/ChiseledBookshelf.php.

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from pocketmine\block\tile\Tile.

Definition at line 49 of file tile/ChiseledBookshelf.php.

Member Function Documentation

◆ canOpenWith()

pocketmine\block\tile\Container::canOpenWith ( string $key)
inherited

Returns whether this container can be opened by an item with the given custom name.

◆ close()

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

Definition at line 129 of file Tile.php.

◆ copyDataFromItem()

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

Definition at line 92 of file Tile.php.

◆ getBlock()

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

Definition at line 98 of file Tile.php.

◆ getCleanedNBT()

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

Definition at line 82 of file Tile.php.

◆ getInventory()

pocketmine\block\tile\ChiseledBookshelf::getInventory ( )

Implements pocketmine\inventory\InventoryHolder.

Definition at line 54 of file tile/ChiseledBookshelf.php.

◆ getLastInteractedSlot()

pocketmine\block\tile\ChiseledBookshelf::getLastInteractedSlot ( )

Definition at line 62 of file tile/ChiseledBookshelf.php.

◆ getPosition()

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

Definition at line 102 of file Tile.php.

◆ getRealInventory()

pocketmine\block\tile\ChiseledBookshelf::getRealInventory ( )

Implements pocketmine\block\tile\Container.

Definition at line 58 of file tile/ChiseledBookshelf.php.

◆ isClosed()

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

Definition at line 106 of file Tile.php.

◆ loadItems()

pocketmine\block\tile\ChiseledBookshelf::loadItems ( CompoundTag $tag)
protected

Definition at line 88 of file tile/ChiseledBookshelf.php.

◆ onBlockDestroyed()

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

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 ( )
protectedinherited

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.

◆ readSaveData()

pocketmine\block\tile\ChiseledBookshelf::readSaveData ( CompoundTag $nbt)

Reimplemented from pocketmine\block\tile\Tile.

Definition at line 70 of file tile/ChiseledBookshelf.php.

◆ saveItems()

pocketmine\block\tile\ChiseledBookshelf::saveItems ( CompoundTag $tag)
protected

Definition at line 119 of file tile/ChiseledBookshelf.php.

◆ saveNBT()

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

Definition at line 70 of file Tile.php.

◆ setLastInteractedSlot()

pocketmine\block\tile\ChiseledBookshelf::setLastInteractedSlot ( ?ChiseledBookshelfSlot $lastInteractedSlot)

Definition at line 66 of file tile/ChiseledBookshelf.php.

◆ writeSaveData()

pocketmine\block\tile\ChiseledBookshelf::writeSaveData ( CompoundTag $nbt)
protected

Writes additional save data to a CompoundTag, not including generic things like ID and coordinates.

Reimplemented from pocketmine\block\tile\Tile.

Definition at line 79 of file tile/ChiseledBookshelf.php.

Member Data Documentation

◆ $closed

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

Definition at line 50 of file Tile.php.

◆ $position

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

Definition at line 49 of file Tile.php.

◆ $timings

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

Definition at line 51 of file Tile.php.

◆ TAG_ID

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

Definition at line 44 of file Tile.php.

◆ TAG_ITEMS

const pocketmine\block\tile\Container::TAG_ITEMS = "Items"
inherited

Definition at line 30 of file Container.php.

◆ TAG_LOCK

const pocketmine\block\tile\Container::TAG_LOCK = "Lock"
inherited

Definition at line 31 of file Container.php.

◆ TAG_X

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

Definition at line 45 of file Tile.php.

◆ TAG_Y

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

Definition at line 46 of file Tile.php.

◆ TAG_Z

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

Definition at line 47 of file Tile.php.


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