PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary:

Public Member Functions

 __construct (private array $itemTypes)
 
 fromIntId (int $intId)
 
 fromStringId (string $stringId)
 
 getEntries ()
 

Detailed Description

Definition at line 20 of file ItemTypeDictionary.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary::__construct ( private array  $itemTypes)
Parameters
ItemTypeEntry[]$itemTypes@phpstan-param list<ItemTypeEntry> $itemTypes

Definition at line 37 of file ItemTypeDictionary.php.

Member Function Documentation

◆ fromIntId()

pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary::fromIntId ( int  $intId)

Definition at line 59 of file ItemTypeDictionary.php.

◆ fromStringId()

pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary::fromStringId ( string  $stringId)

Definition at line 52 of file ItemTypeDictionary.php.

◆ getEntries()

pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary::getEntries ( )
Returns
ItemTypeEntry[] @phpstan-return list<ItemTypeEntry>

Definition at line 48 of file ItemTypeDictionary.php.


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