PocketMine-MP 5.23.3 git-4a4572131f27ab967701ceaaf2020cfbe26e375c
Loading...
Searching...
No Matches
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: