diff options
Diffstat (limited to 'minecraft-chat/src/translatable_component.rs')
| -rw-r--r-- | minecraft-chat/src/translatable_component.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/minecraft-chat/src/translatable_component.rs b/minecraft-chat/src/translatable_component.rs new file mode 100644 index 00000000..e9099e55 --- /dev/null +++ b/minecraft-chat/src/translatable_component.rs @@ -0,0 +1,10 @@ +pub struct TranslatableComponent { + pub key: String, + pub args: Vec<String>, +} + +impl TranslatableComponent { + pub fn new(key: String, args: Vec<String>) -> Self { + Self { key, args } + } +} |
