Struct LevelDimensionShape
#[non_exhaustive]pub struct LevelDimensionShape {
pub min_y: i32,
pub height: i32,
pub logical_height: i32,
pub sky_light: bool,
pub has_ceiling: bool,
}Expand description
Build range and sky properties of a loaded level’s dimension type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_y: i32Lowest buildable block Y.
height: i32Build height in blocks.
logical_height: i32Height used by portals and chorus fruit.
sky_light: boolWhether the dimension has skylight.
has_ceiling: boolWhether the dimension has a ceiling.
Implementations§
§impl LevelDimensionShape
impl LevelDimensionShape
Trait Implementations§
§impl Clone for LevelDimensionShape
impl Clone for LevelDimensionShape
§fn clone(&self) -> LevelDimensionShape
fn clone(&self) -> LevelDimensionShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LevelDimensionShape
§impl Debug for LevelDimensionShape
impl Debug for LevelDimensionShape
impl Eq for LevelDimensionShape
§impl PartialEq for LevelDimensionShape
impl PartialEq for LevelDimensionShape
impl StructuralPartialEq for LevelDimensionShape
Auto Trait Implementations§
impl Freeze for LevelDimensionShape
impl RefUnwindSafe for LevelDimensionShape
impl Send for LevelDimensionShape
impl Sync for LevelDimensionShape
impl Unpin for LevelDimensionShape
impl UnsafeUnpin for LevelDimensionShape
impl UnwindSafe for LevelDimensionShape
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