Struct cobble_core::minecraft::Resourcepack
source · pub struct Resourcepack {
pub name: String,
pub path: PathBuf,
pub _type: ResourcepackType,
}
Available on crate feature
resourcepacks
only.Expand description
Represents a single resourcepack.
Fields§
§name: String
Filename
path: PathBuf
Filepath
_type: ResourcepackType
Type
Implementations§
source§impl Resourcepack
impl Resourcepack
sourcepub async fn remove(self) -> CobbleResult<()>
pub async fn remove(self) -> CobbleResult<()>
Removes the resourcepack from disk.
Warning: This will permanently delete the file!
source§impl Resourcepack
impl Resourcepack
sourcepub const TEXTUREPACK_VERSIONS: [&str; 94] = _
pub const TEXTUREPACK_VERSIONS: [&str; 94] = _
All minecraft versions that were using texturepacks instead of resourcepacks. Versions before 2013-06-13.
Trait Implementations§
source§impl Clone for Resourcepack
impl Clone for Resourcepack
source§fn clone(&self) -> Resourcepack
fn clone(&self) -> Resourcepack
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 moresource§impl Debug for Resourcepack
impl Debug for Resourcepack
source§impl<'de> Deserialize<'de> for Resourcepack
impl<'de> Deserialize<'de> for Resourcepack
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