Struct cobble_core::minecraft::InstallOptionsBuilder
source · pub struct InstallOptionsBuilder { /* private fields */ }
Expand description
Builder for InstallOptions
.
Implementations§
source§impl InstallOptionsBuilder
impl InstallOptionsBuilder
sourcepub fn version_data(&mut self, value: VersionData) -> &mut Self
pub fn version_data(&mut self, value: VersionData) -> &mut Self
Minecraft version data
sourcepub fn asset_index(&mut self, value: AssetIndex) -> &mut Self
pub fn asset_index(&mut self, value: AssetIndex) -> &mut Self
Minecraft asset index
sourcepub fn libraries_path(&mut self, value: PathBuf) -> &mut Self
pub fn libraries_path(&mut self, value: PathBuf) -> &mut Self
Path for libraries
sourcepub fn natives_path(&mut self, value: PathBuf) -> &mut Self
pub fn natives_path(&mut self, value: PathBuf) -> &mut Self
Path for native libraries
sourcepub fn assets_path(&mut self, value: PathBuf) -> &mut Self
pub fn assets_path(&mut self, value: PathBuf) -> &mut Self
Path for assets
sourcepub fn log_configs_path(&mut self, value: PathBuf) -> &mut Self
pub fn log_configs_path(&mut self, value: PathBuf) -> &mut Self
Path for log configs
sourcepub fn minecraft_path(&mut self, value: PathBuf) -> &mut Self
pub fn minecraft_path(&mut self, value: PathBuf) -> &mut Self
Path for minecraft
sourcepub fn parallel_downloads(&mut self, value: u16) -> &mut Self
pub fn parallel_downloads(&mut self, value: u16) -> &mut Self
Number of parallel downloads
sourcepub fn download_retries(&mut self, value: u16) -> &mut Self
pub fn download_retries(&mut self, value: u16) -> &mut Self
Number of download retries
sourcepub fn verify_downloads(&mut self, value: bool) -> &mut Self
pub fn verify_downloads(&mut self, value: bool) -> &mut Self
Whether to verify downloads
sourcepub fn build(&self) -> Result<InstallOptions, InstallOptionsBuilderError>
pub fn build(&self) -> Result<InstallOptions, InstallOptionsBuilderError>
Trait Implementations§
source§impl Clone for InstallOptionsBuilder
impl Clone for InstallOptionsBuilder
source§fn clone(&self) -> InstallOptionsBuilder
fn clone(&self) -> InstallOptionsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more