pub struct BiomeTypes { /* private fields */ }
Expand description
Used to look up standard Minecraft biome types
Implementations§
Source§impl BiomeTypes
impl BiomeTypes
Sourcepub fn get_legacy(&self, id: u8) -> Option<&Biome>
pub fn get_legacy(&self, id: u8) -> Option<&Biome>
Resolves a Minecraft pre-1.18 numeric biome type ID
Sourcepub fn get_fallback(&self) -> &Biome
pub fn get_fallback(&self) -> &Biome
Returns the fallback for unknown (new/modded) biomes
Trait Implementations§
Source§impl Debug for BiomeTypes
impl Debug for BiomeTypes
Auto Trait Implementations§
impl Freeze for BiomeTypes
impl RefUnwindSafe for BiomeTypes
impl Send for BiomeTypes
impl Sync for BiomeTypes
impl Unpin for BiomeTypes
impl UnwindSafe for BiomeTypes
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