pub struct PlayBlockPlacementSpec {
pub hand: Hand,
pub location: IntPosition,
pub face: DiggingFace,
pub cursor_position: Vec3<f32>,
pub inside_block: bool,
}
Fields§
§hand: Hand
§location: IntPosition
§face: DiggingFace
§cursor_position: Vec3<f32>
§inside_block: bool
Trait Implementations§
Source§impl Clone for PlayBlockPlacementSpec
impl Clone for PlayBlockPlacementSpec
Source§fn clone(&self) -> PlayBlockPlacementSpec
fn clone(&self) -> PlayBlockPlacementSpec
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 PlayBlockPlacementSpec
impl Debug for PlayBlockPlacementSpec
Source§impl Deserialize for PlayBlockPlacementSpec
impl Deserialize for PlayBlockPlacementSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(Hand, IntPosition, DiggingFace, Vec3<f32>, bool)> for PlayBlockPlacementSpec
impl From<(Hand, IntPosition, DiggingFace, Vec3<f32>, bool)> for PlayBlockPlacementSpec
Source§fn from(other: (Hand, IntPosition, DiggingFace, Vec3<f32>, bool)) -> Self
fn from(other: (Hand, IntPosition, DiggingFace, Vec3<f32>, bool)) -> Self
Converts to this type from the input type.
Source§impl From<PlayBlockPlacementSpec> for (Hand, IntPosition, DiggingFace, Vec3<f32>, bool)
impl From<PlayBlockPlacementSpec> for (Hand, IntPosition, DiggingFace, Vec3<f32>, bool)
Source§fn from(other: PlayBlockPlacementSpec) -> Self
fn from(other: PlayBlockPlacementSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayBlockPlacementSpec
impl PartialEq for PlayBlockPlacementSpec
Source§impl Serialize for PlayBlockPlacementSpec
impl Serialize for PlayBlockPlacementSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayBlockPlacementSpec
Auto Trait Implementations§
impl Freeze for PlayBlockPlacementSpec
impl RefUnwindSafe for PlayBlockPlacementSpec
impl Send for PlayBlockPlacementSpec
impl Sync for PlayBlockPlacementSpec
impl Unpin for PlayBlockPlacementSpec
impl UnwindSafe for PlayBlockPlacementSpec
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