aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/chat
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-09-24 10:28:06 +0200
committerGitHub <noreply@github.com>2024-09-24 10:28:06 +0200
commitcc8a3dba69e8f1474a33a7e47b32d452f11735fd (patch)
tree14d9ddc21d47f7bbeffc1f3f6acf9ae9bf083741 /src/main/java/at/hannibal2/skyhanni/utils/chat
parent1e9764d1d1209177d4a939a9b812931a7d49a926 (diff)
downloadskyhanni-cc8a3dba69e8f1474a33a7e47b32d452f11735fd.tar.gz
skyhanni-cc8a3dba69e8f1474a33a7e47b32d452f11735fd.tar.bz2
skyhanni-cc8a3dba69e8f1474a33a7e47b32d452f11735fd.zip
Feature: /shnavigate (#2575)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/chat')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/chat/Text.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/chat/Text.kt b/src/main/java/at/hannibal2/skyhanni/utils/chat/Text.kt
index 5bec46867..024550ec5 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/chat/Text.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/chat/Text.kt
@@ -6,6 +6,7 @@ import net.minecraft.event.ClickEvent
import net.minecraft.event.HoverEvent
import net.minecraft.util.ChatComponentText
import net.minecraft.util.ChatStyle
+import net.minecraft.util.EnumChatFormatting
import net.minecraft.util.IChatComponent
object Text {
@@ -97,5 +98,11 @@ object Text {
val token = ChatClickActionManager.createAction(onClick, expiresAt, oneTime)
this.command = "/shaction $token"
}
+
+
+ fun createDivider() = Text.HYPHEN.fitToChat().style {
+ strikethrough = true
+ color = EnumChatFormatting.BLUE
+ }
}