PocketMine-MP 5.41.1 git-dec84fe67dc3319e33f5066e5d03b16f00f2ff4c
Loading...
Searching...
No Matches
pocketmine\network\mcpe\ComplexInventoryMapEntry Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\ComplexInventoryMapEntry:

Public Member Functions

 __construct (private Inventory $inventory, private array $slotMap)
 
 getInventory ()
 
 getSlotMap ()
 
 mapCoreToNet (int $slot)
 
 mapNetToCore (int $slot)
 

Detailed Description

Definition at line 28 of file ComplexInventoryMapEntry.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\ComplexInventoryMapEntry::__construct ( private Inventory $inventory,
private array $slotMap )
Parameters
int[]$slotMap@phpstan-param array<int, int> $slotMap

Definition at line 40 of file ComplexInventoryMapEntry.php.

Member Function Documentation

◆ getInventory()

pocketmine\network\mcpe\ComplexInventoryMapEntry::getInventory ( )

Definition at line 49 of file ComplexInventoryMapEntry.php.

◆ getSlotMap()

pocketmine\network\mcpe\ComplexInventoryMapEntry::getSlotMap ( )
Returns
int[] @phpstan-return array<int, int>

Definition at line 55 of file ComplexInventoryMapEntry.php.

◆ mapCoreToNet()

pocketmine\network\mcpe\ComplexInventoryMapEntry::mapCoreToNet ( int $slot)

Definition at line 61 of file ComplexInventoryMapEntry.php.

◆ mapNetToCore()

pocketmine\network\mcpe\ComplexInventoryMapEntry::mapNetToCore ( int $slot)

Definition at line 57 of file ComplexInventoryMapEntry.php.


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