Definition at line 35 of file tile/Chest.php.
◆ __construct()
pocketmine\block\tile\Chest::__construct |
( |
World | $world, |
|
|
Vector3 | $pos ) |
◆ addAdditionalSpawnData()
pocketmine\block\tile\Chest::addAdditionalSpawnData |
( |
CompoundTag | $nbt | ) |
|
|
protected |
◆ canOpenWith()
pocketmine\block\tile\ContainerTile::canOpenWith |
( |
string | $key | ) |
|
|
inherited |
Returns whether this container can be opened by an item with the given custom name.
◆ clearSpawnCompoundCache()
pocketmine\block\tile\Spawnable::clearSpawnCompoundCache |
( |
| ) |
|
|
inherited |
◆ close()
pocketmine\block\tile\Chest::close |
( |
| ) |
|
◆ copyDataFromItem()
pocketmine\block\tile\Tile::copyDataFromItem |
( |
Item | $item | ) |
|
|
inherited |
◆ getBlock()
pocketmine\block\tile\Tile::getBlock |
( |
| ) |
|
|
inherited |
◆ getCleanedNBT()
pocketmine\block\tile\Chest::getCleanedNBT |
( |
| ) |
|
◆ getDefaultName()
pocketmine\block\tile\Chest::getDefaultName |
( |
| ) |
|
◆ getInventory()
pocketmine\block\tile\Chest::getInventory |
( |
| ) |
|
◆ getPairXZ()
pocketmine\block\tile\Chest::getPairXZ |
( |
| ) |
|
- Returns
- int[]|null @phpstan-return array{int, int}|null
Definition at line 118 of file tile/Chest.php.
◆ getPosition()
pocketmine\block\tile\Tile::getPosition |
( |
| ) |
|
|
inherited |
◆ getRealInventory()
pocketmine\block\tile\Chest::getRealInventory |
( |
| ) |
|
◆ 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 54 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 64 of file Spawnable.php.
◆ getSpawnCompound()
pocketmine\block\tile\Spawnable::getSpawnCompound |
( |
| ) |
|
|
finalinherited |
◆ isClosed()
pocketmine\block\tile\Tile::isClosed |
( |
| ) |
|
|
inherited |
◆ onBlockDestroyed()
pocketmine\block\tile\Tile::onBlockDestroyed |
( |
| ) |
|
|
finalinherited |
◆ onBlockDestroyedHook()
pocketmine\block\tile\Tile::onBlockDestroyedHook |
( |
| ) |
|
|
protectedinherited |
◆ readSaveData()
pocketmine\block\tile\Chest::readSaveData |
( |
CompoundTag | $nbt | ) |
|
◆ saveNBT()
pocketmine\block\tile\Tile::saveNBT |
( |
| ) |
|
|
inherited |
◆ setPairXZ()
pocketmine\block\tile\Chest::setPairXZ |
( |
?array | $pairXZ | ) |
|
- Parameters
-
int[] | null | $pairXZ | @phpstan-param array{int, int}|null $pairXZ |
Definition at line 126 of file tile/Chest.php.
◆ writeSaveData()
pocketmine\block\tile\Chest::writeSaveData |
( |
CompoundTag | $nbt | ) |
|
|
protected |
◆ $closed
bool pocketmine\block\tile\Tile::$closed = false |
|
inherited |
◆ $doubleInventory
◆ $inventory
Inventory pocketmine\block\tile\Chest::$inventory |
|
protected |
◆ $position
Position pocketmine\block\tile\Tile::$position |
|
protectedinherited |
◆ $timings
◆ TAG_CUSTOM_NAME
const pocketmine\block\tile\Nameable::TAG_CUSTOM_NAME = "CustomName" |
|
inherited |
◆ TAG_ID
const pocketmine\block\tile\Tile::TAG_ID = "id" |
|
inherited |
◆ TAG_ITEMS
const pocketmine\block\tile\ContainerTile::TAG_ITEMS = "Items" |
|
inherited |
◆ TAG_LOCK
const pocketmine\block\tile\ContainerTile::TAG_LOCK = "Lock" |
|
inherited |
◆ TAG_PAIR_LEAD
const pocketmine\block\tile\Chest::TAG_PAIR_LEAD = "pairlead" |
◆ TAG_PAIRX
const pocketmine\block\tile\Chest::TAG_PAIRX = "pairx" |
◆ TAG_PAIRZ
const pocketmine\block\tile\Chest::TAG_PAIRZ = "pairz" |
◆ 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: