PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
pocketmine\block\tile Namespace Reference

Classes

class  Banner
 
class  Barrel
 
class  Beacon
 
class  Bed
 
class  Bell
 
class  BlastFurnace
 
class  BrewingStand
 
class  Cauldron
 
class  Chest
 
class  ChiseledBookshelf
 
class  Comparator
 
interface  Container
 
class  DaylightSensor
 
class  EnchantTable
 
class  EnderChest
 
class  FlowerPot
 
class  Furnace
 
class  GlowingItemFrame
 
class  Hopper
 
class  ItemFrame
 
class  Jukebox
 
class  Lectern
 
class  MobHead
 
class  MonsterSpawner
 
interface  Nameable
 
class  NormalFurnace
 
class  Note
 
class  ShulkerBox
 
class  Sign
 
class  Smoker
 
class  Spawnable
 
class  SporeBlossom
 
class  Tile
 
class  TileFactory
 

Functions

 addAdditionalSpawnData (CompoundTag $nbt)
 
 canOpenWith (string $key)
 
 copyDataFromItem (Item $item)
 
 getDefaultName ()
 
 getName ()
 
 getPosition ()
 
 getRealInventory ()
 
 hasName ()
 
 loadItems (CompoundTag $tag)
 
 loadName (CompoundTag $tag)
 
 onBlockDestroyedHook ()
 
 saveItems (CompoundTag $tag)
 
 saveName (CompoundTag $tag)
 
 setName (string $name)
 

Variables

trait ContainerTrait
 
trait NameableTrait
 

Detailed Description

All the Tile classes and related classes

Function Documentation

◆ addAdditionalSpawnData()

pocketmine\block\tile\addAdditionalSpawnData ( CompoundTag  $nbt)

Definition at line 55 of file NameableTrait.php.

◆ canOpenWith()

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

Definition at line 88 of file ContainerTrait.php.

◆ copyDataFromItem()

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

Definition at line 76 of file NameableTrait.php.

◆ getName()

pocketmine\block\tile\getName ( )

Definition at line 39 of file NameableTrait.php.

◆ getPosition()

pocketmine\block\tile\getPosition ( )
abstractprotected

◆ hasName()

pocketmine\block\tile\hasName ( )

Definition at line 51 of file NameableTrait.php.

◆ loadItems()

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

Definition at line 45 of file ContainerTrait.php.

◆ loadName()

pocketmine\block\tile\loadName ( CompoundTag  $tag)
protected

Definition at line 61 of file NameableTrait.php.

◆ onBlockDestroyedHook()

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

Definition at line 100 of file ContainerTrait.php.

Referenced by pocketmine\block\tile\Tile\onBlockDestroyed().

+ Here is the caller graph for this function:

◆ saveItems()

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

Definition at line 72 of file ContainerTrait.php.

◆ saveName()

pocketmine\block\tile\saveName ( CompoundTag  $tag)
protected

Definition at line 67 of file NameableTrait.php.

◆ setName()

pocketmine\block\tile\setName ( string  $name)

Definition at line 43 of file NameableTrait.php.

Variable Documentation

◆ ContainerTrait

trait pocketmine::block::tile\ContainerTrait
Initial value:
{
private $lock = null

This trait implements most methods in the Container interface. It should only be used by Tiles.

Definition at line 39 of file ContainerTrait.php.

◆ NameableTrait

trait pocketmine::block::tile\NameableTrait
Initial value:
{
private $customName = null

This trait implements most methods in the Nameable interface. It should only be used by Tiles.

Definition at line 33 of file NameableTrait.php.