pub enum AddonKind {
ResourcePack,
Mod,
Plugin,
Shader,
Datapack,
}Expand description
Different kinds of addons
Variants§
ResourcePack
A Minecraft resource pack
Mod
A game modification that needs to be loaded by a custom loader
Plugin
A server plugin that modifies game behavior
Shader
A graphics shader that needs to be loaded by a shader modification
Datapack
A Minecraft datapack
Implementations§
Source§impl AddonKind
impl AddonKind
Sourcepub fn parse_from_str(string: &str) -> Option<Self>
pub fn parse_from_str(string: &str) -> Option<Self>
Parse an AddonKind from a string
Sourcepub fn to_plural_string(&self) -> String
pub fn to_plural_string(&self) -> String
Plural version of to_string
Sourcepub fn get_extension(&self) -> &str
pub fn get_extension(&self) -> &str
Gets the file extension for this addon kind
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddonKind
impl<'de> Deserialize<'de> for AddonKind
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
impl Copy for AddonKind
Auto Trait Implementations§
impl Freeze for AddonKind
impl RefUnwindSafe for AddonKind
impl Send for AddonKind
impl Sync for AddonKind
impl Unpin for AddonKind
impl UnwindSafe for AddonKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more