pub struct BlockTransform {
pub x: i32,
pub y: i32,
pub uvlock: bool,
}Expand description
Block-level transform from blockstate variant.
Fields§
§x: i32X rotation in degrees (0, 90, 180, 270).
y: i32Y rotation in degrees (0, 90, 180, 270).
uvlock: boolIf true, UV coordinates don’t rotate with the block.
Implementations§
Trait Implementations§
Source§impl Clone for BlockTransform
impl Clone for BlockTransform
Source§fn clone(&self) -> BlockTransform
fn clone(&self) -> BlockTransform
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockTransform
impl Debug for BlockTransform
Source§impl Default for BlockTransform
impl Default for BlockTransform
Source§fn default() -> BlockTransform
fn default() -> BlockTransform
Returns the “default value” for a type. Read more
impl Copy for BlockTransform
Auto Trait Implementations§
impl Freeze for BlockTransform
impl RefUnwindSafe for BlockTransform
impl Send for BlockTransform
impl Sync for BlockTransform
impl Unpin for BlockTransform
impl UnwindSafe for BlockTransform
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