Struct MapInfo
pub struct MapInfo<'a> {
pub id: i32,
pub center: [i32; 2],
pub scale: u8,
pub dimension: &'a str,
pub locked: bool,
pub in_frame: bool,
}Expand description
A map as a native mod sees it when native_map_decorations is asked.
Fields§
§id: i32The map’s id (map_<id>).
center: [i32; 2]The map’s centre block [x, z].
scale: u8MapItemSavedData.scale: a map pixel is 1 << scale blocks.
dimension: &'a strThe dimension the map shows (minecraft:overworld).
locked: bool§in_frame: boolWhether it is drawn in an item frame, not held or on the cartography screen.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MapInfo<'a>
impl<'a> RefUnwindSafe for MapInfo<'a>
impl<'a> Send for MapInfo<'a>
impl<'a> Sync for MapInfo<'a>
impl<'a> Unpin for MapInfo<'a>
impl<'a> UnsafeUnpin for MapInfo<'a>
impl<'a> UnwindSafe for MapInfo<'a>
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