aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt
index 9b9c0f8dd..52ec909c0 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt
@@ -1,3 +1,10 @@
package at.hannibal2.skyhanni.events
-class ActionBarUpdateEvent(val actionBar: String) : LorenzEvent()
+import net.minecraft.util.ChatComponentText
+import net.minecraft.util.IChatComponent
+
+class ActionBarUpdateEvent(var actionBar: String, var chatComponent: IChatComponent) : LorenzEvent() {
+ fun changeActionBar(newText: String) {
+ chatComponent = ChatComponentText(newText)
+ }
+}