Struct azalea_core::position::ChunkPos
source · pub struct ChunkPos {
pub x: i32,
pub z: i32,
}
Expand description
Chunk coordinates are used to represent where a chunk is in the world. You can convert the x and z to block coordinates by multiplying them by 16.
Fields§
§x: i32
§z: i32
Implementations§
Trait Implementations§
source§impl From<ChunkSectionPos> for ChunkPos
impl From<ChunkSectionPos> for ChunkPos
source§fn from(pos: ChunkSectionPos) -> Self
fn from(pos: ChunkSectionPos) -> Self
Converts to this type from the input type.
source§impl McBufReadable for ChunkPos
impl McBufReadable for ChunkPos
source§impl McBufWritable for ChunkPos
impl McBufWritable for ChunkPos
source§impl PartialEq for ChunkPos
impl PartialEq for ChunkPos
impl Copy for ChunkPos
impl Eq for ChunkPos
impl IsEnabled for ChunkPos
nohash_hasher lets us have IntMap<ChunkPos, _> which is significantly faster than a normal HashMap
impl StructuralPartialEq for ChunkPos
Auto Trait Implementations§
impl Freeze for ChunkPos
impl RefUnwindSafe for ChunkPos
impl Send for ChunkPos
impl Sync for ChunkPos
impl Unpin for ChunkPos
impl UnwindSafe for ChunkPos
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