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
Level
s through an Arc<LevelEnv>
.
Fields§
§blocks: GlobalBlocks
Global blocks palette.
biomes: GlobalBiomes
Global biomes palette.
entities: GlobalEntities
Global entity types palette.
heightmaps: GlobalHeightmaps
Global 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