aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-18 20:10:16 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-18 20:23:44 +0200
commitc264ca9e8f9f2b0aed457753c43bb4e25edb0ef1 (patch)
treef0eac8c4902bca00f9e44bc4d0e9b6eb73e7144d /src/main/kotlin/moe/nea/firmament/events
parentfbe94315a45082bdf50d0a95583725352e3f20ec (diff)
downloadfirmament-c264ca9e8f9f2b0aed457753c43bb4e25edb0ef1.tar.gz
firmament-c264ca9e8f9f2b0aed457753c43bb4e25edb0ef1.tar.bz2
firmament-c264ca9e8f9f2b0aed457753c43bb4e25edb0ef1.zip
Add pickaxe ability timer
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/SlotClickEvent.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/SlotClickEvent.kt b/src/main/kotlin/moe/nea/firmament/events/SlotClickEvent.kt
new file mode 100644
index 0000000..d935adb
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firmament/events/SlotClickEvent.kt
@@ -0,0 +1,20 @@
+/*
+ * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+package moe.nea.firmament.events
+
+import net.minecraft.item.ItemStack
+import net.minecraft.screen.slot.Slot
+import net.minecraft.screen.slot.SlotActionType
+
+data class SlotClickEvent(
+ val slot: Slot,
+ val stack: ItemStack,
+ val button: Int,
+ val actionType: SlotActionType,
+) : FirmamentEvent() {
+ companion object : FirmamentEventBus<SlotClickEvent>()
+}