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> --- .../java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt | 2 +- .../at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt | 2 +- .../skyhanni/features/slayer/enderman/EndermanSlayerHideParticles.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt index 95c3bc9d2..85bd64e9e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt @@ -222,7 +222,7 @@ object VampireSlayerFeatures { } @SubscribeEvent - fun onEntityHit(event: EntityClickEvent) { + fun onEntityClick(event: EntityClickEvent) { if (!isEnabled()) return if (event.clickType != ClickType.LEFT_CLICK) return if (event.clickedEntity !is EntityOtherPlayerMP) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt index 821ff6a71..a4555eaf3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt @@ -37,7 +37,7 @@ class BlazeSlayerClearView { } @SubscribeEvent - fun onReceivePacket(event: ReceiveParticleEvent) { + fun onReceiveParticle(event: ReceiveParticleEvent) { if (isEnabled()) { event.isCanceled = true } diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerHideParticles.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerHideParticles.kt index 857dfcc91..4eb8f91aa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerHideParticles.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerHideParticles.kt @@ -25,7 +25,7 @@ class EndermanSlayerHideParticles { } @SubscribeEvent - fun onReceivePacket(event: ReceiveParticleEvent) { + fun onReceiveParticle(event: ReceiveParticleEvent) { if (!isEnabled()) return when (event.type) { -- cgit