|
PocketMine-MP 5.44.3 git-327e8a1690982f1ac3634944d705ebad5d91f4ad
|
Inheritance diagram for pocketmine\network\mcpe\InventoryManager:
Collaboration diagram for pocketmine\network\mcpe\InventoryManager:Static Protected Member Functions | |
| static | createContainerOpen (int $id, InventoryWindow $window) |
@phpstan-type ContainerOpenClosure \Closure(int $id, InventoryWindow $window) : (list<ClientboundPacket>|null)
Definition at line 86 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::__construct | ( | private Player | $player, |
| private NetworkSession | $session ) |
Definition at line 127 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::addPredictedSlotChange | ( | InventoryWindow | $window, |
| int | $slot, | ||
| Item | $item ) |
Definition at line 265 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::addRawPredictedSlotChanges | ( | array | $networkInventoryActions | ) |
| NetworkInventoryAction[] | $networkInventoryActions |
| PacketHandlingException |
Definition at line 288 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::addTransactionPredictedSlotChanges | ( | InventoryTransaction | $tx | ) |
Definition at line 271 of file InventoryManager.php.
|
staticprotected |
Definition at line 397 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::flushPendingUpdates | ( | ) |
Definition at line 705 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::getContainerOpenCallbacks | ( | ) |
@phpstan-return ObjectSet<ContainerOpenClosure>
Definition at line 391 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::getCurrentWindowId | ( | ) |
Definition at line 235 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::getEnchantingTableOptionIndex | ( | int | $recipeId | ) |
Definition at line 797 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::getInventoryWindow | ( | Inventory | $inventory | ) |
Definition at line 165 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::getItemStackInfo | ( | InventoryWindow | $window, |
| int | $slot ) |
Definition at line 805 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::getWindowId | ( | InventoryWindow | $window | ) |
Definition at line 231 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::locateWindowAndSlot | ( | int | $windowId, |
| int | $netSlotId ) |
@phpstan-return array{InventoryWindow, int}|null
Definition at line 242 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onClientOpenMainInventory | ( | ) |
Definition at line 425 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onClientRemoveWindow | ( | int | $id | ) |
Definition at line 454 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onClientSelectHotbarSlot | ( | int | $slot | ) |
Definition at line 738 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onContentChange | ( | Inventory | $inventory, |
| array | $oldContents ) |
| Item[] | $oldContents |
Implements pocketmine\inventory\InventoryListener.
Definition at line 632 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onCurrentWindowChange | ( | InventoryWindow | $window | ) |
Definition at line 360 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onCurrentWindowRemove | ( | ) |
Definition at line 442 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::onSlotChange | ( | Inventory | $inventory, |
| int | $slot, | ||
| Item | $oldItem ) |
Implements pocketmine\inventory\InventoryListener.
Definition at line 522 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::requestSyncAll | ( | ) |
Definition at line 683 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::requestSyncSlot | ( | InventoryWindow | $window, |
| int | $slot ) |
Definition at line 532 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::setCurrentItemStackRequestId | ( | ?int | $id | ) |
Definition at line 315 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::syncAll | ( | ) |
Definition at line 677 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::syncCreative | ( | ) |
Definition at line 763 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::syncData | ( | Inventory | $inventory, |
| int | $propertyId, | ||
| int | $value ) |
Definition at line 725 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::syncEnchantingTableOptions | ( | array | $options | ) |
| EnchantingOption[] | $options | @phpstan-param list<EnchantingOption> $options |
Definition at line 771 of file InventoryManager.php.
References pocketmine\item\enchantment\EnchantmentInstance\getLevel(), and pocketmine\item\enchantment\EnchantmentInstance\getType().
Here is the call graph for this function:| pocketmine\network\mcpe\InventoryManager::syncMismatchedPredictedSlotChanges | ( | ) |
Definition at line 687 of file InventoryManager.php.
| pocketmine\network\mcpe\InventoryManager::syncSelectedHotbarSlot | ( | ) |
Definition at line 742 of file InventoryManager.php.