aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/DurabilityBarEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/DurabilityBarEvent.kt')
-rw-r--r--src/main/kotlin/util/DurabilityBarEvent.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/kotlin/util/DurabilityBarEvent.kt b/src/main/kotlin/util/DurabilityBarEvent.kt
new file mode 100644
index 0000000..993462c
--- /dev/null
+++ b/src/main/kotlin/util/DurabilityBarEvent.kt
@@ -0,0 +1,20 @@
+
+package moe.nea.firmament.util
+
+import me.shedaniel.math.Color
+import net.minecraft.item.ItemStack
+import moe.nea.firmament.events.FirmamentEvent
+import moe.nea.firmament.events.FirmamentEventBus
+
+data class DurabilityBarEvent(
+ val item: ItemStack,
+) : FirmamentEvent() {
+ data class DurabilityBar(
+ val color: Color,
+ val percentage: Float,
+ )
+
+ var barOverride: DurabilityBar? = null
+
+ companion object : FirmamentEventBus<DurabilityBarEvent>()
+}