PocketMine-MP 5.35.1 git-d241807752ab518f2ffc7e3b71f6a72f9cdf0c30
|
Static Protected Member Functions | |
static | createContainerOpen (int $id, Inventory $inv) |
@phpstan-type ContainerOpenClosure \Closure(int $id, Inventory $inventory) : (list<ClientboundPacket>|null)
Definition at line 83 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::__construct | ( | private Player | $player, |
private NetworkSession | $session ) |
Definition at line 124 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::addPredictedSlotChange | ( | Inventory | $inventory, |
int | $slot, | ||
Item | $item ) |
Definition at line 237 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::addRawPredictedSlotChanges | ( | array | $networkInventoryActions | ) |
NetworkInventoryAction[] | $networkInventoryActions |
PacketHandlingException |
Definition at line 260 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::addTransactionPredictedSlotChanges | ( | InventoryTransaction | $tx | ) |
Definition at line 243 of file InventoryManager.php.
|
staticprotected |
Definition at line 366 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::flushPendingUpdates | ( | ) |
Definition at line 656 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::getContainerOpenCallbacks | ( | ) |
@phpstan-return ObjectSet<ContainerOpenClosure>
Definition at line 360 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::getCurrentWindowId | ( | ) |
Definition at line 209 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::getEnchantingTableOptionIndex | ( | int | $recipeId | ) |
Definition at line 745 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::getItemStackInfo | ( | Inventory | $inventory, |
int | $slot ) |
Definition at line 753 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::getWindowId | ( | Inventory | $inventory | ) |
Definition at line 205 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::locateWindowAndSlot | ( | int | $windowId, |
int | $netSlotId ) |
@phpstan-return array{Inventory, int}|null
Definition at line 216 of file InventoryManager.php.
References pocketmine\inventory\Inventory\slotExists().
pocketmine\network\mcpe\InventoryManager::onClientOpenMainInventory | ( | ) |
Definition at line 394 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::onClientRemoveWindow | ( | int | $id | ) |
Definition at line 422 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::onClientSelectHotbarSlot | ( | int | $slot | ) |
Definition at line 683 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::onCurrentWindowChange | ( | Inventory | $inventory | ) |
Definition at line 329 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::onCurrentWindowRemove | ( | ) |
Definition at line 410 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::onSlotChange | ( | Inventory | $inventory, |
int | $slot ) |
Definition at line 490 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::requestSyncAll | ( | ) |
Definition at line 634 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::setCurrentItemStackRequestId | ( | ?int | $id | ) |
Definition at line 284 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncAll | ( | ) |
Definition at line 628 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncContents | ( | Inventory | $inventory | ) |
Definition at line 592 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncCreative | ( | ) |
Definition at line 711 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncData | ( | Inventory | $inventory, |
int | $propertyId, | ||
int | $value ) |
Definition at line 676 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncEnchantingTableOptions | ( | array | $options | ) |
EnchantingOption[] | $options | @phpstan-param list<EnchantingOption> $options |
Definition at line 719 of file InventoryManager.php.
References pocketmine\item\enchantment\EnchantmentInstance\getLevel(), and pocketmine\item\enchantment\EnchantmentInstance\getType().
pocketmine\network\mcpe\InventoryManager::syncMismatchedPredictedSlotChanges | ( | ) |
Definition at line 638 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncSelectedHotbarSlot | ( | ) |
Definition at line 687 of file InventoryManager.php.
pocketmine\network\mcpe\InventoryManager::syncSlot | ( | Inventory | $inventory, |
int | $slot, | ||
ItemStack | $itemStack ) |
Definition at line 561 of file InventoryManager.php.