From a7c6e08864f4d7a2ebf5776d2b4d5c8f1a691b56 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Thu, 4 Apr 2024 05:10:32 +1100 Subject: Backend: Make all event names uniform (#1290) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt | 4 ++-- .../at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt | 2 +- .../at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 2 +- .../java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt index 5584ee216..ea94117af 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt @@ -173,7 +173,7 @@ class CroesusChestTracker { } @SubscribeEvent - fun onSlotClicked(event: GuiContainerEvent.SlotClickEvent) { + fun onSlotClick(event: GuiContainerEvent.SlotClickEvent) { if (!LorenzUtils.inSkyBlock) return if (!config.showUsedKismets) return if (chestInventory != null && event.slotId == kismetSlotId) { @@ -199,7 +199,7 @@ class CroesusChestTracker { } @SubscribeEvent - fun onRenderItemTipAmount(event: RenderItemTipEvent) { + fun onRenderItemTip(event: RenderItemTipEvent) { if (!LorenzUtils.inSkyBlock) return if (!config.kismetStackSize) return if (chestInventory == null) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt index 5f78d5886..57afa54cb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt @@ -51,7 +51,7 @@ class DungeonDeathCounter { deathPatternsList.any { it.matches(message) } @SubscribeEvent(receiveCanceled = true) - fun onChatPacket(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (isDeathMessage(event.message)) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt index 1614ad8ab..b561f52c6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt @@ -289,7 +289,7 @@ class DungeonFinderFeatures { } @SubscribeEvent - fun onToolTipRender(event: LorenzToolTipEvent) { + fun onTooltip(event: LorenzToolTipEvent) { if (!isEnabled()) return if (!inInventory) return val toolTip = toolTipMap[event.slot.slotIndex] diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt index d845edbbf..82002040c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt @@ -166,7 +166,7 @@ class DungeonHideItems { } @SubscribeEvent - fun onReceivePacket(event: ReceiveParticleEvent) { + fun onReceiveParticle(event: ReceiveParticleEvent) { if (!LorenzUtils.inDungeons) return if (!config.hideSuperboomTNT && !config.hideReviveStone) return -- cgit