Trait keeshond_datapack::DataPreparer [−][src]
pub trait DataPreparer<T: DataObject + 'static, U> { fn prepare(&mut self, data: &mut T, id: DataId) -> U; fn unprepare(&mut self, prepared: &mut U, id: DataId); fn reprepare(&mut self, data: &mut T, prepared: &mut U, id: DataId) { ... } }
Expand description
Used with PreparedStore, this allows the definition of behavior when initializing resources with a backend. See PreparedStore for more information.