Struct MapState
pub struct MapState {
pub center: [i32; 2],
pub scale: u8,
pub dimension: String,
pub locked: bool,
pub tracking: bool,
pub unlimited: bool,
pub colors: Vec<u8>,
}Expand description
A map’s saved data (MapItemSavedData) as it stands: where it is, how far it reaches and
its pixels. The markers (players, banners, frames) are not part of it.
Fields§
§center: [i32; 2]The centre block [x, z].
scale: u8A map pixel is 1 << scale blocks, 0 to 4.
dimension: StringThe dimension it shows, minecraft:overworld.
locked: boolA locked map (a cartography table’s glass pane) no longer reveals the world.
tracking: boolWhether it shows its holders’ markers.
unlimited: boolWhether it shows them however far away they are.
colors: Vec<u8>128 by 128 map colour ids, row by row (x + z * 128).
Trait Implementations§
impl Eq for MapState
impl StructuralPartialEq for MapState
Auto Trait Implementations§
impl Freeze for MapState
impl RefUnwindSafe for MapState
impl Send for MapState
impl Sync for MapState
impl Unpin for MapState
impl UnsafeUnpin for MapState
impl UnwindSafe for MapState
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