aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorHiZe <super@hize.be>2024-02-24 17:25:08 +0100
committerGitHub <noreply@github.com>2024-02-24 17:25:08 +0100
commit8dfbcf2a67f0a8207e49d8a97e18c4e80f8fbb96 (patch)
tree786c4cf47b06f7ac2990e2a62967492d0a5511a5 /src/main/java/at/hannibal2/skyhanni/events
parentbc239065f94548814717e2d07588696ee261c1e3 (diff)
downloadskyhanni-8dfbcf2a67f0a8207e49d8a97e18c4e80f8fbb96.tar.gz
skyhanni-8dfbcf2a67f0a8207e49d8a97e18c4e80f8fbb96.tar.bz2
skyhanni-8dfbcf2a67f0a8207e49d8a97e18c4e80f8fbb96.zip
Feature: Skill progress display (#957)
Co-authored-by: Thunderblade73 <gaidermarkus@gmail.com> Co-authored-by: superhize <superhize@gmail.com> Co-authored-by: Cal <cwolfson58@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ActionBarUpdateEvent.kt9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SkillOverflowLevelupEvent.kt5
2 files changed, 13 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)
+ }
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SkillOverflowLevelupEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SkillOverflowLevelupEvent.kt
new file mode 100644
index 000000000..a4a25a314
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/SkillOverflowLevelupEvent.kt
@@ -0,0 +1,5 @@
+package at.hannibal2.skyhanni.events
+
+import at.hannibal2.skyhanni.features.skillprogress.SkillType
+
+class SkillOverflowLevelupEvent(val skill: SkillType, val oldLevel: Int, val newLevel: Int): LorenzEvent()