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: i32Implementations§
Trait Implementations§
Source§impl Add<ChunkBlockPos> for ChunkPos
impl Add<ChunkBlockPos> for ChunkPos
Source§impl AzBuf for ChunkPos
impl AzBuf for ChunkPos
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
fn azalea_write(&self, buf: &mut impl Write) -> Result<()>
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.
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.