aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-03-09 21:46:04 +0100
committerGitHub <noreply@github.com>2024-03-09 21:46:04 +0100
commitea8d09297d037807f00b62778f99901060f4e375 (patch)
treecbae93e981dcc5da3f00e3e8760b32fe00cdc044 /src/main/java/at/hannibal2/skyhanni/events
parentabedb7ead429d461ee2bab4d1e7977ba1e42b7de (diff)
downloadskyhanni-ea8d09297d037807f00b62778f99901060f4e375.tar.gz
skyhanni-ea8d09297d037807f00b62778f99901060f4e375.tar.bz2
skyhanni-ea8d09297d037807f00b62778f99901060f4e375.zip
Feature: Kismet Feather Tracker (#1011)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt
new file mode 100644
index 000000000..d278753cb
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt
@@ -0,0 +1,3 @@
+package at.hannibal2.skyhanni.events
+
+class DungeonCompleteEvent(val floor: String) : LorenzEvent()
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt
index bc9e97ed8..f8d6c4ab4 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt
@@ -9,6 +9,9 @@ open class InventoryOpenEvent(private val inventory: OtherInventoryData.Inventor
val inventoryName: String by lazy { inventory.title }
val inventorySize: Int by lazy { inventory.slotCount }
val inventoryItems: Map<Int, ItemStack> by lazy { inventory.items }
+ val inventoryItemsWithNull: Map<Int, ItemStack?> by lazy {
+ (0 until inventorySize).associateWith { inventoryItems[it] }
+ }
val fullyOpenedOnce: Boolean get() = inventory.fullyOpenedOnce
}