pub struct LevelEnv {
pub blocks: GlobalBlocks,
pub biomes: GlobalBiomes,
pub entities: GlobalEntities,
pub heightmaps: GlobalHeightmaps,
}Expand description
A structure that contains the static environment of a World, this can be used for multiple
Levels through an Arc<LevelEnv>.
Fields§
§blocks: GlobalBlocksGlobal blocks palette.
biomes: GlobalBiomesGlobal biomes palette.
entities: GlobalEntitiesGlobal entity types palette.
heightmaps: GlobalHeightmapsGlobal heightmap types palette.
Implementations§
Source§impl LevelEnv
impl LevelEnv
pub fn new( blocks: GlobalBlocks, biomes: GlobalBiomes, entities: GlobalEntities, heightmaps: GlobalHeightmaps, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LevelEnv
impl !RefUnwindSafe for LevelEnv
impl Send for LevelEnv
impl Sync for LevelEnv
impl Unpin for LevelEnv
impl !UnwindSafe for LevelEnv
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