Skip to main content

Vegetation

Trait Vegetation 

Source
pub trait Vegetation {
    // Provided method
    fn may_place_on(
        &self,
        state: BlockStateId,
        _world: &dyn LevelReader,
        _pos: BlockPos,
    ) -> bool { ... }
}
Expand description

Common behavior for vegetation blocks

Provided Methods§

Source

fn may_place_on( &self, state: BlockStateId, _world: &dyn LevelReader, _pos: BlockPos, ) -> bool

Checks if the vegetation block can be placed on the given block state below on the given position below.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§