aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/events/Events.kt
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-09-23 22:24:48 -0500
committeringle <inglettronald@gmail.com>2022-09-23 22:25:15 -0500
commit3cd5f5f32cd60c15e1c68862d28885f733473dad (patch)
treeb58f43d7a27cfab3246b7b32a84ff1b8518dd3b9 /src/main/kotlin/dulkirmod/events/Events.kt
parent982f4e721ea20eaef3056050ad0b6a5058d24354 (diff)
downloadDulkirMod-3cd5f5f32cd60c15e1c68862d28885f733473dad.tar.gz
DulkirMod-3cd5f5f32cd60c15e1c68862d28885f733473dad.tar.bz2
DulkirMod-3cd5f5f32cd60c15e1c68862d28885f733473dad.zip
Some things work now
Diffstat (limited to 'src/main/kotlin/dulkirmod/events/Events.kt')
-rw-r--r--src/main/kotlin/dulkirmod/events/Events.kt43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/events/Events.kt b/src/main/kotlin/dulkirmod/events/Events.kt
new file mode 100644
index 0000000..bc4654d
--- /dev/null
+++ b/src/main/kotlin/dulkirmod/events/Events.kt
@@ -0,0 +1,43 @@
+package dulkirmod.events
+
+import net.minecraft.client.gui.inventory.GuiContainer
+import net.minecraft.client.model.ModelBase
+import net.minecraft.entity.EntityLivingBase
+import net.minecraft.inventory.Container
+import net.minecraft.inventory.Slot
+import net.minecraft.network.Packet
+import net.minecraftforge.fml.common.eventhandler.Cancelable
+import net.minecraftforge.fml.common.eventhandler.Event
+
+open class ClickEvent : Event() {
+ @Cancelable
+ class LeftClickEvent : ClickEvent()
+
+ @Cancelable
+ class RightClickEvent : ClickEvent()
+}
+
+open class GuiContainerEvent(val container: Container, val gui: GuiContainer) : Event() {
+ @Cancelable
+ class DrawSlotEvent(container: Container, gui: GuiContainer, var slot: Slot) :
+ GuiContainerEvent(container, gui)
+
+ @Cancelable
+ class SlotClickEvent(container: Container, gui: GuiContainer, var slot: Slot?, var slotId: Int) :
+ GuiContainerEvent(container, gui)
+}
+
+@Cancelable
+class ReceivePacketEvent(val packet: Packet<*>) : Event()
+
+@Cancelable
+class RenderLivingEntityEvent(
+ var entity: EntityLivingBase,
+ var p_77036_2_: Float,
+ var p_77036_3_: Float,
+ var p_77036_4_: Float,
+ var p_77036_5_: Float,
+ var p_77036_6_: Float,
+ var scaleFactor: Float,
+ var modelBase: ModelBase
+) : Event()