diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-09-21 13:24:57 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-09-21 13:24:57 +0200 |
commit | aca98055728de99808e5d07c4ca1aea72773e703 (patch) | |
tree | debf1e349c6304b538e1afd6f04057aa4178d1ac /src/main/java/at | |
parent | 0aa7a605a23f3b1740a481c39ca58835c53d0650 (diff) | |
download | skyhanni-aca98055728de99808e5d07c4ca1aea72773e703.tar.gz skyhanni-aca98055728de99808e5d07c4ca1aea72773e703.tar.bz2 skyhanni-aca98055728de99808e5d07c4ca1aea72773e703.zip |
added docs to InventoryFullyOpenedEvent
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt index d786445fb..5374b95d3 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt @@ -26,6 +26,17 @@ open class InventoryOpenEvent(private val inventory: OtherInventoryData.Inventor val fullyOpenedOnce: Boolean get() = inventory.fullyOpenedOnce } +/** + * This event is getting fired after every slot in the newly opened inventory has item data. + * + * New inventory data gets first sent as an empty inventory from the server. + * Item stack slot information is sent afterwards, sometimes with a short delay. + * + * This approach is faster than to wait a fix duration after the inventory open packet is detected. + * + * Since this logic only works via packets, and the player inventory (pressing E) is client side, + * this event does not get fired when opening the invenotory via pressingE. + */ class InventoryFullyOpenedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory) class InventoryUpdatedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory) |