diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-17 18:30:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-17 18:30:31 +0100 |
commit | 3b98ddabeda1e78f63442fb5709b68ce7a1223e7 (patch) | |
tree | b1e977c46ac8890fab8fc8b2d5f3d7572958c5db /src/main/java/at/hannibal2/skyhanni/events | |
parent | d577665018ab1a8a908f81fa0b3ef93c17bf5afa (diff) | |
download | skyhanni-3b98ddabeda1e78f63442fb5709b68ce7a1223e7.tar.gz skyhanni-3b98ddabeda1e78f63442fb5709b68ce7a1223e7.tar.bz2 skyhanni-3b98ddabeda1e78f63442fb5709b68ce7a1223e7.zip |
Added Copy Underbid Price
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt index ca165c31c..7ff2ca293 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt @@ -3,13 +3,14 @@ package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.data.OtherInventoryData import net.minecraft.item.ItemStack -open class InventoryOpenEvent(inventory: OtherInventoryData.Inventory) : LorenzEvent() { +open class InventoryOpenEvent(private val inventory: OtherInventoryData.Inventory) : LorenzEvent() { val inventoryId: Int by lazy { inventory.windowId } val inventoryName: String by lazy { inventory.title } val inventorySize: Int by lazy { inventory.slotCount } val inventoryItems: Map<Int, ItemStack> by lazy { inventory.items } + val fullyOpenedOnce: Boolean get() = inventory.fullyOpenedOnce } class InventoryFullyOpenedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory) -class InventoryUpdatedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory)
\ No newline at end of file +class InventoryUpdatedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory) |