aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-09-30 00:09:40 +0200
committernea <nea@nea.moe>2023-09-30 00:10:54 +0200
commit040dbca01439e6fd6afbb911beb09d73d2ee0d1e (patch)
tree26775c922c501db08018306d51559faefca8d9d6 /src/main/kotlin/moe/nea/firmament/events
parentf89135db7e500571231721ac8d5b0ffff63469df (diff)
downloadfirmament-040dbca01439e6fd6afbb911beb09d73d2ee0d1e.tar.gz
firmament-040dbca01439e6fd6afbb911beb09d73d2ee0d1e.tar.bz2
firmament-040dbca01439e6fd6afbb911beb09d73d2ee0d1e.zip
Add item rarity backgrounds
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/HotbarItemRenderEvent.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/HotbarItemRenderEvent.kt b/src/main/kotlin/moe/nea/firmament/events/HotbarItemRenderEvent.kt
new file mode 100644
index 0000000..59660ce
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firmament/events/HotbarItemRenderEvent.kt
@@ -0,0 +1,20 @@
+/*
+ * 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.gui.DrawContext
+import net.minecraft.item.ItemStack
+
+data class HotbarItemRenderEvent(
+ val item: ItemStack,
+ val context: DrawContext,
+ val x: Int,
+ val y: Int,
+ val tickDelta: Float,
+) : FirmamentEvent() {
+ companion object : FirmamentEventBus<HotbarItemRenderEvent>()
+}