aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt5
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
}