MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / get_jassets_path

Method get_jassets_path

rust/src/api/mod.rs:2040–2051  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2038 }
2039
2040 fn get_jassets_path(&self) -> errors::Result<PathBuf> {
2041 match &self.base_path {
2042 Some(base_path_string) => {
2043 let mut pb = PathBuf::from(base_path_string);
2044 pb.push("jassets");
2045 let mut global_jassets_path_opt = cache::JASSETS_PATH.lock()?;
2046 *global_jassets_path_opt = Some(pb.clone());
2047 Ok(pb)
2048 }
2049 None => utils::default_jassets_path(),
2050 }
2051 }
2052}
2053
2054/// Represents default, known Classes in Java. Can be used as class argument in `Jvm#java_list`, etc.

Callers 1

buildMethod · 0.80

Calls 1

default_jassets_pathFunction · 0.85

Tested by

no test coverage detected