pub struct Vanilla {
pub jar: PathBuf,
pub version: String,
/* private fields */
}Expand description
Where the vanilla resources come from.
Fields§
§jar: PathBuf§version: StringImplementations§
Source§impl Vanilla
impl Vanilla
Sourcepub fn read_all(&self, key: &str) -> Vec<Vec<u8>>
pub fn read_all(&self, key: &str) -> Vec<Vec<u8>>
key from the jar and from the asset objects — both, for files the
download overrides (the jar’s font/include/unifont.json is an
empty stub; the real one is an asset object).
Sourcepub fn read_data(&self, key: &str) -> Option<Vec<u8>>
pub fn read_data(&self, key: &str) -> Option<Vec<u8>>
data/<key> from the jar (tags, recipes, …), if there.
Sourcepub fn names_under(&self, prefix: &str) -> Vec<String>
pub fn names_under(&self, prefix: &str) -> Vec<String>
The jar’s file names under prefix (data/minecraft/loot_tables/), the prefix cut.
Auto Trait Implementations§
impl !Freeze for Vanilla
impl RefUnwindSafe for Vanilla
impl Send for Vanilla
impl Sync for Vanilla
impl Unpin for Vanilla
impl UnsafeUnpin for Vanilla
impl UnwindSafe for Vanilla
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more