PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\data\bedrock\item\BlockItemIdMap Class Reference
+ Collaboration diagram for pocketmine\data\bedrock\item\BlockItemIdMap:

Public Member Functions

 __construct (private array $blockToItemId)
 
 lookupBlockId (string $itemId)
 
 lookupItemId (string $blockId)
 

Detailed Description

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

Definition at line 38 of file BlockItemIdMap.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\item\BlockItemIdMap::__construct ( private array  $blockToItemId)
Parameters
string[]$blockToItemId@phpstan-param array<string, string> $blockToItemId

Definition at line 64 of file BlockItemIdMap.php.

Member Function Documentation

◆ lookupBlockId()

pocketmine\data\bedrock\item\BlockItemIdMap::lookupBlockId ( string  $itemId)

Definition at line 72 of file BlockItemIdMap.php.

◆ lookupItemId()

pocketmine\data\bedrock\item\BlockItemIdMap::lookupItemId ( string  $blockId)

Definition at line 68 of file BlockItemIdMap.php.


The documentation for this class was generated from the following file: