diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-25 01:40:35 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-25 01:40:35 +0200 |
commit | 1824a3d9172e6f6e350b2d2d98c8faf5519566e5 (patch) | |
tree | 3df8515abc93e013c5eb1ce81b3461c5fe726e81 /src/main/java/at/hannibal2 | |
parent | a9b2e710c90b35b13f1a5c32622f91cad29f1e52 (diff) | |
download | skyhanni-1824a3d9172e6f6e350b2d2d98c8faf5519566e5.tar.gz skyhanni-1824a3d9172e6f6e350b2d2d98c8faf5519566e5.tar.bz2 skyhanni-1824a3d9172e6f6e350b2d2d98c8faf5519566e5.zip |
random name change
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt index 0b894d87e..a528e27c5 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt @@ -3,14 +3,14 @@ package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.data.OtherInventoryData import net.minecraft.item.ItemStack -open class BaseInventoryOpenEvent(inventory: OtherInventoryData.Inventory): LorenzEvent() { +open class InventoryEvent(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 } } -class InventoryOpenEvent(inventory: OtherInventoryData.Inventory): BaseInventoryOpenEvent(inventory) +class InventoryOpenEvent(inventory: OtherInventoryData.Inventory): InventoryEvent(inventory) // Firing with items that are added later -class LateInventoryOpenEvent(inventory: OtherInventoryData.Inventory): BaseInventoryOpenEvent(inventory)
\ No newline at end of file +class LateInventoryOpenEvent(inventory: OtherInventoryData.Inventory): InventoryEvent(inventory)
\ No newline at end of file |