PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
clearSpawnCompoundCache () | |
close () | |
copyDataFromItem (Item $item) | |
getBlock () | |
getCleanedNBT () | |
getPosition () | |
getRenderUpdateBugWorkaroundStateProperties (Block $block) | |
getSerializedSpawnCompound () | |
getSpawnCompound () | |
isClosed () | |
isDirty () | |
onBlockDestroyed () | |
readSaveData (CompoundTag $nbt) | |
saveNBT () | |
setDirty (bool $dirty=true) | |
Public Attributes | |
bool | $closed = false |
const | TAG_ID = "id" |
const | TAG_X = "x" |
const | TAG_Y = "y" |
const | TAG_Z = "z" |
Protected Member Functions | |
addAdditionalSpawnData (CompoundTag $nbt) | |
onBlockDestroyedHook () | |
writeSaveData (CompoundTag $nbt) | |
Protected Attributes | |
Position | $position |
TimingsHandler | $timings |
This exists to force the client to update the spore blossom every tick, which is necessary for it to generate particles.
Definition at line 32 of file tile/SporeBlossom.php.
|
protected |
An extension to getSpawnCompound() for further modifying the generic tile NBT.
Reimplemented from pocketmine\block\tile\Spawnable.
Definition at line 34 of file tile/SporeBlossom.php.
|
inherited |
Definition at line 52 of file Spawnable.php.
|
inherited |
|
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 68 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<\pocketmine\nbt\tag\CompoundTag>
Definition at line 78 of file Spawnable.php.
|
finalinherited |
Definition at line 86 of file Spawnable.php.
|
inherited |
Definition at line 41 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().
|
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.
pocketmine\block\tile\SporeBlossom::readSaveData | ( | CompoundTag | $nbt | ) |
Reimplemented from pocketmine\block\tile\Tile.
Definition at line 38 of file tile/SporeBlossom.php.
|
inherited |
Definition at line 48 of file Spawnable.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 42 of file tile/SporeBlossom.php.
|
protectedinherited |
|
protectedinherited |