pub enum Direction {
Down = 0,
Up = 1,
North = 2,
South = 3,
West = 4,
East = 5,
}Variants§
Implementations§
Source§impl Direction
impl Direction
pub const HORIZONTAL: [Direction; 4]
pub const VERTICAL: [Direction; 2]
pub fn nearest(vec: Vec3) -> Direction
pub fn normal(self) -> BlockPos
pub fn normal_vec3(self) -> Vec3
pub fn opposite(self) -> Direction
pub fn x(self) -> i32
pub fn y(self) -> i32
pub fn z(self) -> i32
Trait Implementations§
Source§impl AzBuf for Direction
impl AzBuf for Direction
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl From<CardinalDirection> for Direction
impl From<CardinalDirection> for Direction
Source§fn from(value: CardinalDirection) -> Self
fn from(value: CardinalDirection) -> Self
Converts to this type from the input type.
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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.