PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (private BlockStateSerializer $blockStateSerializer) | |
map (Item $item, \Closure $serializer) | |
mapBlock (Block $block, \Closure $serializer) | |
serializeStack (Item $item, ?int $slot=null) | |
serializeType (Item $item) | |
Definition at line 37 of file ItemSerializer.php.
pocketmine\data\bedrock\item\ItemSerializer::__construct | ( | private BlockStateSerializer | $blockStateSerializer | ) |
Definition at line 53 of file ItemSerializer.php.
pocketmine\data\bedrock\item\ItemSerializer::map | ( | Item | $item, |
\Closure | $serializer ) |
@phpstan-template TItemType of Item @phpstan-param TItemType $item @phpstan-param \Closure(TItemType) : Data $serializer
Definition at line 65 of file ItemSerializer.php.
pocketmine\data\bedrock\item\ItemSerializer::mapBlock | ( | Block | $block, |
\Closure | $serializer ) |
@phpstan-template TBlockType of Block @phpstan-param TBlockType $block @phpstan-param \Closure(TBlockType) : Data $serializer
Definition at line 78 of file ItemSerializer.php.
pocketmine\data\bedrock\item\ItemSerializer::serializeStack | ( | Item | $item, |
?int | $slot = null ) |
Definition at line 132 of file ItemSerializer.php.
pocketmine\data\bedrock\item\ItemSerializer::serializeType | ( | Item | $item | ) |
@phpstan-template TItemType of Item @phpstan-param TItemType $item
ItemTypeSerializeException |
Definition at line 92 of file ItemSerializer.php.