pub struct MinecraftClient {
pub path: PathBuf,
pub version: String,
pub server: Option<String>,
}
Fields§
§path: PathBuf
Path to the .minecraft folder
version: String
Folder name of a version, that you’re going to run
server: Option<String>
Server IP of the server to which the player will be connected after the game starts (does not work on versions higher than 1.20)
Implementations§
Source§impl MinecraftClient
impl MinecraftClient
pub fn get_client_file(&self) -> Result<PathBuf>
pub fn get_client_info(&self) -> Result<ClientFile>
Trait Implementations§
Source§impl Clone for MinecraftClient
impl Clone for MinecraftClient
Source§fn clone(&self) -> MinecraftClient
fn clone(&self) -> MinecraftClient
Returns a duplicate 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 moreSource§impl Debug for MinecraftClient
impl Debug for MinecraftClient
Source§impl Default for MinecraftClient
impl Default for MinecraftClient
Source§fn default() -> MinecraftClient
fn default() -> MinecraftClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MinecraftClient
impl RefUnwindSafe for MinecraftClient
impl Send for MinecraftClient
impl Sync for MinecraftClient
impl Unpin for MinecraftClient
impl UnwindSafe for MinecraftClient
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