PocketMine-MP 5.21.3 git-fcef015f32c0b0709cfd4d6f1b3c32f484b25bde
Loading...
Searching...
No Matches
pocketmine\data\bedrock\item\ItemDeserializer Class Reference
+ Collaboration diagram for pocketmine\data\bedrock\item\ItemDeserializer:

Public Member Functions

 __construct (private BlockStateDeserializer $blockStateDeserializer)
 
 deserializeStack (SavedItemStackData $data)
 
 deserializeType (Data $data)
 
 map (string $id, \Closure $deserializer)
 
 mapBlock (string $id, \Closure $deserializer)
 

Detailed Description

Definition at line 37 of file ItemDeserializer.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\item\ItemDeserializer::__construct ( private BlockStateDeserializer $blockStateDeserializer)

Definition at line 44 of file ItemDeserializer.php.

Member Function Documentation

◆ deserializeStack()

pocketmine\data\bedrock\item\ItemDeserializer::deserializeStack ( SavedItemStackData $data)
Exceptions
ItemTypeDeserializeException

Definition at line 95 of file ItemDeserializer.php.

◆ deserializeType()

pocketmine\data\bedrock\item\ItemDeserializer::deserializeType ( Data $data)
Exceptions
ItemTypeDeserializeException

Definition at line 70 of file ItemDeserializer.php.

◆ map()

pocketmine\data\bedrock\item\ItemDeserializer::map ( string $id,
\Closure $deserializer )

@phpstan-param \Closure(Data) : Item $deserializer

Definition at line 53 of file ItemDeserializer.php.

◆ mapBlock()

pocketmine\data\bedrock\item\ItemDeserializer::mapBlock ( string $id,
\Closure $deserializer )

@phpstan-param \Closure(Data) : Block $deserializer

Definition at line 63 of file ItemDeserializer.php.


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