pub enum TreeGenerator {
Simple(SimpleTreeGenerator),
Big(BigTreeGenerator),
Spruce1(Spruce1TreeGenerator),
Spruce2(Spruce2TreeGenerator),
}Expand description
A generic tree generator of any type.
Variants§
Simple(SimpleTreeGenerator)
Big(BigTreeGenerator)
Spruce1(Spruce1TreeGenerator)
Spruce2(Spruce2TreeGenerator)
Implementations§
Source§impl TreeGenerator
impl TreeGenerator
pub fn new_oak() -> Self
pub fn new_birch() -> Self
pub fn new_big() -> Self
pub fn new_big_natural() -> Self
pub fn new_spruce1() -> Self
pub fn new_spruce2() -> Self
Source§impl TreeGenerator
impl TreeGenerator
pub fn generate_from_sapling(&mut self, world: &mut World, pos: IVec3) -> bool
Trait Implementations§
Source§impl FeatureGenerator for TreeGenerator
impl FeatureGenerator for TreeGenerator
Auto Trait Implementations§
impl Freeze for TreeGenerator
impl RefUnwindSafe for TreeGenerator
impl Send for TreeGenerator
impl Sync for TreeGenerator
impl Unpin for TreeGenerator
impl UnwindSafe for TreeGenerator
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