- Deprecated
 
- See also
 - \pocketmine\block\ItemFrame 
 
Definition at line 30 of file GlowingItemFrame.php.
 
◆ addAdditionalSpawnData()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::addAdditionalSpawnData  | 
          ( | 
          CompoundTag |           $nbt | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ clearSpawnCompoundCache()
  
  
      
        
          | pocketmine\block\tile\Spawnable::clearSpawnCompoundCache  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ close()
  
  
      
        
          | pocketmine\block\tile\Tile::close  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ copyDataFromItem()
  
  
      
        
          | pocketmine\block\tile\Tile::copyDataFromItem  | 
          ( | 
          Item |           $item | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getBlock()
  
  
      
        
          | pocketmine\block\tile\Tile::getBlock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getCleanedNBT()
  
  
      
        
          | pocketmine\block\tile\Tile::getCleanedNBT  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getItem()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::getItem  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getItemDropChance()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::getItemDropChance  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getItemRotation()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::getItemRotation  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getPosition()
  
  
      
        
          | pocketmine\block\tile\Tile::getPosition  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ getRenderUpdateBugWorkaroundStateProperties()
  
  
      
        
          | pocketmine\block\tile\Spawnable::getRenderUpdateBugWorkaroundStateProperties  | 
          ( | 
          Block |           $block | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
The Bedrock client won't re-render a block if the block's state properties didn't change. This is a problem when the tile may affect the block's appearance. For example, a cauldron's liquid changes colour based on the dye inside.
This is worked around in vanilla by modifying one of the block's state properties to a different value, and then changing it back again. Since we don't want to litter core implementation with hacks like this, we brush it under the rug into Tile.
- Returns
 - ByteTag[]|IntTag[]|StringTag[] @phpstan-return array<string, IntTag|StringTag|ByteTag> 
 
Reimplemented in pocketmine\block\tile\Cauldron, and pocketmine\block\tile\FlowerPot.
Definition at line 68 of file Spawnable.php.
 
 
◆ getSerializedSpawnCompound()
  
  
      
        
          | pocketmine\block\tile\Spawnable::getSerializedSpawnCompound  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
finalinherited   | 
  
 
Returns encoded NBT (varint, little-endian) used to spawn this tile to clients. Uses cache where possible, populates cache if it is null.
@phpstan-return CacheableNbt<CompoundTag> 
Definition at line 78 of file Spawnable.php.
 
 
◆ getSpawnCompound()
  
  
      
        
          | pocketmine\block\tile\Spawnable::getSpawnCompound  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
finalinherited   | 
  
 
 
◆ hasItem()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::hasItem  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ isClosed()
  
  
      
        
          | pocketmine\block\tile\Tile::isClosed  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ isDirty()
  
  
      
        
          | pocketmine\block\tile\Spawnable::isDirty  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ onBlockDestroyed()
  
  
      
        
          | pocketmine\block\tile\Tile::onBlockDestroyed  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
finalinherited   | 
  
 
 
◆ onBlockDestroyedHook()
  
  
      
        
          | pocketmine\block\tile\Tile::onBlockDestroyedHook  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ readSaveData()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::readSaveData  | 
          ( | 
          CompoundTag |           $nbt | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ saveNBT()
  
  
      
        
          | pocketmine\block\tile\Tile::saveNBT  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ setDirty()
  
  
      
        
          | pocketmine\block\tile\Spawnable::setDirty  | 
          ( | 
          bool |           $dirty = true | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ setItem()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::setItem  | 
          ( | 
          ?Item |           $item | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ setItemDropChance()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::setItemDropChance  | 
          ( | 
          float |           $chance | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ setItemRotation()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::setItemRotation  | 
          ( | 
          int |           $rotation | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ writeSaveData()
  
  
      
        
          | pocketmine\block\tile\ItemFrame::writeSaveData  | 
          ( | 
          CompoundTag |           $nbt | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ $closed
  
  
      
        
          | bool pocketmine\block\tile\Tile::$closed = false | 
         
       
   | 
  
inherited   | 
  
 
 
◆ $position
  
  
      
        
          | Position pocketmine\block\tile\Tile::$position | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ $timings
◆ TAG_ID
  
  
      
        
          | const pocketmine\block\tile\Tile::TAG_ID = "id" | 
         
       
   | 
  
inherited   | 
  
 
 
◆ TAG_ITEM
  
  
      
        
          | const pocketmine\block\tile\ItemFrame::TAG_ITEM = "Item" | 
         
       
   | 
  
inherited   | 
  
 
 
◆ TAG_ITEM_DROP_CHANCE
  
  
      
        
          | const pocketmine\block\tile\ItemFrame::TAG_ITEM_DROP_CHANCE = "ItemDropChance" | 
         
       
   | 
  
inherited   | 
  
 
 
◆ TAG_ITEM_ROTATION
  
  
      
        
          | const pocketmine\block\tile\ItemFrame::TAG_ITEM_ROTATION = "ItemRotation" | 
         
       
   | 
  
inherited   | 
  
 
 
◆ TAG_X
  
  
      
        
          | const pocketmine\block\tile\Tile::TAG_X = "x" | 
         
       
   | 
  
inherited   | 
  
 
 
◆ TAG_Y
  
  
      
        
          | const pocketmine\block\tile\Tile::TAG_Y = "y" | 
         
       
   | 
  
inherited   | 
  
 
 
◆ TAG_Z
  
  
      
        
          | const pocketmine\block\tile\Tile::TAG_Z = "z" | 
         
       
   | 
  
inherited   | 
  
 
 
The documentation for this class was generated from the following file: