Skip to content

BlockItemIdMap ​

final class · pocketmine\data\bedrock\item\BlockItemIdMap · source

Bidirectional map of block IDs to their corresponding blockitem IDs, used for storing items on disk

Methods ​

__construct() ​

php
public function __construct(array $blockToItemId)

lookupBlockId() ​

php
public function lookupBlockId(string $itemId) : ?string

lookupItemId() ​

php
public function lookupItemId(string $blockId) : ?string

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.