aboutsummaryrefslogtreecommitdiff
path: root/minecraft-chat/src/splitter.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-10 18:03:28 +0000
committermat <github@matdoes.dev>2021-12-10 18:03:28 +0000
commit0dce5f56ce8c4ec0eb3ee4eb6c09b20956242dfa (patch)
tree08c4d0de7f7a14238823f5666b8702329ac6cf52 /minecraft-chat/src/splitter.rs
parentf9f7e3498e63d6553b67cefc3958c98f009b33a2 (diff)
downloadazalea-drasl-0dce5f56ce8c4ec0eb3ee4eb6c09b20956242dfa.tar.xz
add formatting to some motds
Diffstat (limited to 'minecraft-chat/src/splitter.rs')
-rw-r--r--minecraft-chat/src/splitter.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/minecraft-chat/src/splitter.rs b/minecraft-chat/src/splitter.rs
new file mode 100644
index 00000000..812c3365
--- /dev/null
+++ b/minecraft-chat/src/splitter.rs
@@ -0,0 +1,7 @@
+//! Used for splitting text
+//! This includes wrapping long lines and applying legacy color formats.
+//! I'm not sure why applying legacy color formats is done here but that's the way Minecraft does it.
+
+use crate::component::Component;
+
+fn split_lines(component: Component) {}