1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use shulkr::util::Key; #[derive(Debug, Clone, PartialEq, Eq)] pub struct DatapackPreset { key: Key, } impl DatapackPreset { pub const fn new(key: Key) -> Self { Self { key } } pub const fn key(&self) -> &Key { &self.key } }