diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-08 02:42:36 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-08 02:42:36 +0200 |
commit | 9b9202eddb76dccc67771cc35f2cdf2737083762 (patch) | |
tree | d004394458c765309d1354cb0e000388842f66f9 /src | |
parent | 376404aa6ec7ffe3bea6fb3a99f43139dcbfd307 (diff) | |
download | skyhanni-9b9202eddb76dccc67771cc35f2cdf2737083762.tar.gz skyhanni-9b9202eddb76dccc67771cc35f2cdf2737083762.tar.bz2 skyhanni-9b9202eddb76dccc67771cc35f2cdf2737083762.zip |
mark old lorenz event logic deprecated
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt index 48aea06e7..a7d957ace 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt @@ -11,12 +11,14 @@ import net.minecraftforge.common.MinecraftForge import net.minecraftforge.fml.common.eventhandler.Event import net.minecraftforge.fml.common.eventhandler.IEventListener +@Deprecated("Use SkyHanniEvent instead", ReplaceWith("")) abstract class LorenzEvent : Event() { private val eventName by lazy { this::class.simpleName!! } + @Deprecated("Use SkyHanniEvent instead", ReplaceWith("")) fun postAndCatch() = postAndCatchAndBlock {} companion object { @@ -29,6 +31,7 @@ abstract class LorenzEvent : Event() { val isInGuardedEventHandler get() = eventHandlerDepth > 0 || LorenzUtils.isInDevEnvironment() } + @Deprecated("Use SkyHanniEvent instead", ReplaceWith("")) fun postAndCatchAndBlock( printError: Boolean = true, stopOnFirstError: Boolean = false, @@ -67,8 +70,10 @@ abstract class LorenzEvent : Event() { return listenerList.getListeners(accessorEventBus.busId) } + @Deprecated("Use SkyHanniEvent instead", ReplaceWith("")) fun postWithoutCatch() = MinecraftForge.EVENT_BUS.post(this) + @Deprecated("Use SkyHanniEvent instead", ReplaceWith("")) fun cancel() { isCanceled = true } |