aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/GuiKeyPressEvent.kt5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SkyHanniRenderEntityEvent.kt54
2 files changed, 59 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/GuiKeyPressEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/GuiKeyPressEvent.kt
new file mode 100644
index 000000000..1c420d743
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/GuiKeyPressEvent.kt
@@ -0,0 +1,5 @@
+package at.hannibal2.skyhanni.events
+
+import net.minecraft.client.gui.inventory.GuiContainer
+
+class GuiKeyPressEvent(val guiContainer: GuiContainer) : LorenzEvent()
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SkyHanniRenderEntityEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SkyHanniRenderEntityEvent.kt
new file mode 100644
index 000000000..289e661f1
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/SkyHanniRenderEntityEvent.kt
@@ -0,0 +1,54 @@
+package at.hannibal2.skyhanni.events
+
+import net.minecraft.client.renderer.entity.RendererLivingEntity
+import net.minecraft.entity.EntityLivingBase
+import net.minecraftforge.fml.common.eventhandler.Cancelable
+
+@Cancelable
+open class SkyHanniRenderEntityEvent<T : EntityLivingBase>(
+ val entity: T,
+ val renderer: RendererLivingEntity<out T>,
+ val x: Double,
+ val y: Double,
+ val z: Double
+) : LorenzEvent() {
+ class Pre<T : EntityLivingBase>(
+ entity: T,
+ renderer: RendererLivingEntity<out T>,
+ x: Double,
+ y: Double,
+ z: Double
+ ) : SkyHanniRenderEntityEvent<T>(entity, renderer, x, y, z)
+
+ class Post<T : EntityLivingBase>(
+ entity: T,
+ renderer: RendererLivingEntity<out T>,
+ x: Double,
+ y: Double,
+ z: Double
+ ) : SkyHanniRenderEntityEvent<T>(entity, renderer, x, y, z)
+
+ open class Specials<T : EntityLivingBase>(
+ entity: T,
+ renderer: RendererLivingEntity<out T>,
+ x: Double,
+ y: Double,
+ z: Double
+ ) : SkyHanniRenderEntityEvent<T>(entity, renderer, x, y, z) {
+ class Pre<T : EntityLivingBase>(
+ entity: T,
+ renderer: RendererLivingEntity<out T>,
+ x: Double,
+ y: Double,
+ z: Double
+ ) : Specials<T>(entity, renderer, x, y, z)
+
+ class Post<T : EntityLivingBase>(
+ entity: T,
+ renderer: RendererLivingEntity<out T>,
+ x: Double,
+ y: Double,
+ z: Double
+ ) : Specials<T>(entity, renderer, x, y, z)
+ }
+}