1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
azalea/minecraft-chat/src/base_component.rs
2021-12-10 18:03:28 +00:00

17 lines
343 B
Rust

use crate::{component::Component, style::Style};
#[derive(Clone, Debug)]
pub struct BaseComponent {
// implements mutablecomponent
pub siblings: Vec<Component>,
pub style: Style,
}
impl BaseComponent {
pub fn new() -> Self {
Self {
siblings: Vec::new(),
style: Style::new(),
}
}
}