pub struct GameData {
pub minecraft_json: MinecraftVersionJson,
pub minecraft_loader: Option<Value>,
pub minecraft_version: String,
pub minecraft_java: JavaInfo,
pub loader_libraries: Vec<AssetItem>,
pub loader_main_class: Option<String>,
pub loader_version_id: Option<String>,
pub loader_type: Option<LoaderType>,
pub loader_extra_game_args: Vec<String>,
pub loader_extra_jvm_args: Vec<String>,
}Fields§
§minecraft_json: MinecraftVersionJson§minecraft_loader: Option<Value>Loader profile merged on top of the base version JSON (raw JSON value to avoid coupling game_data to a specific loader type).
minecraft_version: String§minecraft_java: JavaInfo§loader_libraries: Vec<AssetItem>Extra library JARs added by the mod loader; included in the classpath.
loader_main_class: Option<String>Main class override set by the mod loader.
loader_version_id: Option<String>Loader version id, e.g. "1.20.4-forge-47.4.20".
loader_type: Option<LoaderType>Which loader type was installed (used for Forge-specific JVM flags).
loader_extra_game_args: Vec<String>Extra plain-string game args contributed by the loader
(from minecraftArguments or arguments.game in the loader JSON).
loader_extra_jvm_args: Vec<String>Extra JVM args from the loader version JSON (arguments.jvm), pre-resolved.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GameData
impl<'de> Deserialize<'de> for GameData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GameData
impl RefUnwindSafe for GameData
impl Send for GameData
impl Sync for GameData
impl Unpin for GameData
impl UnsafeUnpin for GameData
impl UnwindSafe for GameData
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