PocketMine-MP 5.33.2 git-1133d49c924b4358c79d44eeb97dcbf56cb4d1eb
|
Public Member Functions | |
__construct (World $world, Vector3 $pos) | |
canOpenWith (string $key) | |
clearSpawnCompoundCache () | |
close () | |
copyDataFromItem (Item $item) | |
getBlock () | |
getCleanedNBT () | |
getDefaultName () | |
getFacing () | |
getInventory () | |
getName () | |
getPosition () | |
getRealInventory () | |
getRenderUpdateBugWorkaroundStateProperties (Block $block) | |
getSerializedSpawnCompound () | |
getSpawnCompound () | |
hasName () | |
isClosed () | |
onBlockDestroyed () | |
readSaveData (CompoundTag $nbt) | |
saveNBT () | |
setFacing (Facing $facing) | |
setName (string $str) | |
Public Attributes | |
bool | $closed = false |
const | TAG_CUSTOM_NAME = "CustomName" |
const | TAG_FACING = "facing" |
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 | |
addAdditionalSpawnData (CompoundTag $nbt) | |
onBlockDestroyedHook () | |
writeSaveData (CompoundTag $nbt) | |
Protected Attributes | |
Facing | $facing = Facing::NORTH |
Inventory | $inventory |
Position | $position |
TimingsHandler | $timings |
Definition at line 39 of file tile/ShulkerBox.php.
Reimplemented from pocketmine\block\tile\Tile.
Definition at line 51 of file tile/ShulkerBox.php.
|
protected |
An extension to getSpawnCompound() for further modifying the generic tile NBT.
Reimplemented from pocketmine\block\tile\Spawnable.
Definition at line 125 of file tile/ShulkerBox.php.
|
inherited |
Returns whether this container can be opened by an item with the given custom name.
|
inherited |
Definition at line 38 of file Spawnable.php.
pocketmine\block\tile\ShulkerBox::close | ( | ) |
Reimplemented from pocketmine\block\tile\Tile.
Definition at line 86 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::copyDataFromItem | ( | Item | $item | ) |
Reimplemented from pocketmine\block\tile\Tile.
Definition at line 79 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::getCleanedNBT | ( | ) |
Reimplemented from pocketmine\block\tile\Tile.
Definition at line 97 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::getDefaultName | ( | ) |
Implements pocketmine\block\tile\Nameable.
Definition at line 121 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::getFacing | ( | ) |
Definition at line 105 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::getInventory | ( | ) |
Implements pocketmine\inventory\InventoryHolder.
Definition at line 113 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::getRealInventory | ( | ) |
Implements pocketmine\block\tile\ContainerTile.
Definition at line 117 of file tile/ShulkerBox.php.
|
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.
Reimplemented in pocketmine\block\tile\Cauldron, and pocketmine\block\tile\FlowerPot.
Definition at line 54 of file Spawnable.php.
|
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.
|
finalinherited |
Definition at line 72 of file Spawnable.php.
|
finalinherited |
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 from pocketmine\block\tile\Tile.
Definition at line 93 of file tile/ShulkerBox.php.
References pocketmine\nbt\tag\CompoundTag\removeTag().
pocketmine\block\tile\ShulkerBox::readSaveData | ( | CompoundTag | $nbt | ) |
Reimplemented from pocketmine\block\tile\Tile.
Definition at line 65 of file tile/ShulkerBox.php.
pocketmine\block\tile\ShulkerBox::setFacing | ( | Facing | $facing | ) |
Definition at line 109 of file tile/ShulkerBox.php.
|
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 72 of file tile/ShulkerBox.php.
|
protected |
Definition at line 47 of file tile/ShulkerBox.php.
|
protected |
Definition at line 49 of file tile/ShulkerBox.php.
|
protectedinherited |
|
protectedinherited |
|
inherited |
Definition at line 27 of file Nameable.php.
const pocketmine\block\tile\ShulkerBox::TAG_FACING = "facing" |
Definition at line 45 of file tile/ShulkerBox.php.
|
inherited |
Definition at line 30 of file ContainerTile.php.
|
inherited |
Definition at line 31 of file ContainerTile.php.