aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-31 19:38:38 +0200
committernea <nea@nea.moe>2023-08-31 21:22:26 +0200
commitcb032e7c221e40736ab26b193eea4e32d06113d9 (patch)
treee49047b3b78fb9887d72cbe9458af44ecbc179d4 /src/main/kotlin/moe/nea/firmament/events
parentb7b01f1c6fbf889ae9bfcdb5b34c5ccfa48d5ba0 (diff)
downloadFirmament-cb032e7c221e40736ab26b193eea4e32d06113d9.tar.gz
Firmament-cb032e7c221e40736ab26b193eea4e32d06113d9.tar.bz2
Firmament-cb032e7c221e40736ab26b193eea4e32d06113d9.zip
Add price tooltips
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt b/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt
new file mode 100644
index 0000000..ba597cd
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt
@@ -0,0 +1,17 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+package moe.nea.firmament.events
+
+import net.minecraft.client.item.TooltipContext
+import net.minecraft.item.ItemStack
+import net.minecraft.text.Text
+
+data class ItemTooltipEvent(
+ val stack: ItemStack, val context: TooltipContext, val lines: MutableList<Text>
+) : FirmamentEvent() {
+ companion object : FirmamentEventBus<ItemTooltipEvent>()
+}