BlockEntityData 5.46.0
Saved data of the tiles that features give to their blocks (Bedrock tile format, see the tiles in pocketmine\block\tile), built from what vanilla's features put in their block entities.
Methods
beehive()
public static function beehive(array $ticksInHive) : \pocketmine\nbt\tag\CompoundTagA bee nest or beehive holding bees that have been inside for the given numbers of ticks (vanilla's occupants with ticks_in_hive, which leave after more than 600 ticks inside).
brushable()
public static function brushable(string $javaLootTable, int $seed) : \pocketmine\nbt\tag\CompoundTagSuspicious sand or gravel that uncovers an item of a loot table when brushed.
fromJava()
public static function fromJava(string $javaBlock, \pocketmine\nbt\tag\CompoundTag $nbt) : ?\pocketmine\nbt\tag\CompoundTagConverts the block entity data of a structure template block (Java format, after the structure processors) to Bedrock tile data, or returns null if it is not supported (only loot tables of containers and brushable blocks are; other data is dropped).
isRandomizableContainer()
public static function isRandomizableContainer(string $javaBlock) : boolWhether a Java block's block entity is a RandomizableContainer (StructureTemplate.placeInWorld() gives those a new loot seed from the placement random).
lootContainer()
public static function lootContainer(string $tileId, string $javaLootTable, int $seed) : \pocketmine\nbt\tag\CompoundTagA container that fills itself from a loot table when it is first opened (RandomizableContainer).
spawner()
public static function spawner(string $entityId) : \pocketmine\nbt\tag\CompoundTagA monster spawner of the given mob ("minecraft:zombie").
