R12ItemIdToBlockIdMap
Maps all known 1.12 and lower item IDs to their respective block IDs, where appropriate. If an item ID does not have a corresponding 1.12 block ID, assume the item is not a blockitem.
This is only needed for deserializing blockitems from 1.8 and lower (or 1.12 and lower in the case of PM). In 1.9 and above, the blockstate NBT is stored in the itemstack NBT, and the item ID is not used.
Methods
__construct()
php
public function __construct(array $itemToBlock)blockIdToItemId()
php
public function blockIdToItemId(string $blockId) : ?stringitemIdToBlockId()
php
public function itemIdToBlockId(string $itemId) : ?string