pub struct EntityLocation<P, R>{
pub position: Vec3<P>,
pub rotation: EntityRotation<R>,
}
Fields§
§position: Vec3<P>
§rotation: EntityRotation<R>
Trait Implementations§
Source§impl<P, R> Clone for EntityLocation<P, R>
impl<P, R> Clone for EntityLocation<P, R>
Source§fn clone(&self) -> EntityLocation<P, R>
fn clone(&self) -> EntityLocation<P, R>
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<P, R> Debug for EntityLocation<P, R>
impl<P, R> Debug for EntityLocation<P, R>
Source§impl<P, R> Deserialize for EntityLocation<P, R>
impl<P, R> Deserialize for EntityLocation<P, R>
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl<P, R> From<(Vec3<P>, EntityRotation<R>)> for EntityLocation<P, R>
impl<P, R> From<(Vec3<P>, EntityRotation<R>)> for EntityLocation<P, R>
Source§fn from(other: (Vec3<P>, EntityRotation<R>)) -> Self
fn from(other: (Vec3<P>, EntityRotation<R>)) -> Self
Converts to this type from the input type.
Source§impl<P, R> From<EntityLocation<P, R>> for (Vec3<P>, EntityRotation<R>)
impl<P, R> From<EntityLocation<P, R>> for (Vec3<P>, EntityRotation<R>)
Source§fn from(other: EntityLocation<P, R>) -> Self
fn from(other: EntityLocation<P, R>) -> Self
Converts to this type from the input type.
Source§impl From<EntityLocation<f64, f32>> for PlayClientVehicleMoveSpec
impl From<EntityLocation<f64, f32>> for PlayClientVehicleMoveSpec
Source§impl From<EntityLocation<f64, f32>> for PlayClientVehicleMoveSpec
impl From<EntityLocation<f64, f32>> for PlayClientVehicleMoveSpec
Source§impl From<EntityLocation<f64, f32>> for PlayEntityVehicleMoveSpec
impl From<EntityLocation<f64, f32>> for PlayEntityVehicleMoveSpec
Source§impl From<EntityLocation<f64, f32>> for PlayEntityVehicleMoveSpec
impl From<EntityLocation<f64, f32>> for PlayEntityVehicleMoveSpec
Source§impl From<PlayClientVehicleMoveSpec> for EntityLocation<f64, f32>
impl From<PlayClientVehicleMoveSpec> for EntityLocation<f64, f32>
Source§fn from(other: PlayClientVehicleMoveSpec) -> Self
fn from(other: PlayClientVehicleMoveSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayClientVehicleMoveSpec> for EntityLocation<f64, f32>
impl From<PlayClientVehicleMoveSpec> for EntityLocation<f64, f32>
Source§fn from(other: PlayClientVehicleMoveSpec) -> Self
fn from(other: PlayClientVehicleMoveSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayEntityVehicleMoveSpec> for EntityLocation<f64, f32>
impl From<PlayEntityVehicleMoveSpec> for EntityLocation<f64, f32>
Source§fn from(other: PlayEntityVehicleMoveSpec) -> Self
fn from(other: PlayEntityVehicleMoveSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayEntityVehicleMoveSpec> for EntityLocation<f64, f32>
impl From<PlayEntityVehicleMoveSpec> for EntityLocation<f64, f32>
Source§fn from(other: PlayEntityVehicleMoveSpec) -> Self
fn from(other: PlayEntityVehicleMoveSpec) -> Self
Converts to this type from the input type.
Source§impl<P, R> PartialEq for EntityLocation<P, R>
impl<P, R> PartialEq for EntityLocation<P, R>
Source§impl<P, R> Serialize for EntityLocation<P, R>
impl<P, R> Serialize for EntityLocation<P, R>
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl<P, R> StructuralPartialEq for EntityLocation<P, R>
Auto Trait Implementations§
impl<P, R> Freeze for EntityLocation<P, R>
impl<P, R> RefUnwindSafe for EntityLocation<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for EntityLocation<P, R>
impl<P, R> Sync for EntityLocation<P, R>
impl<P, R> Unpin for EntityLocation<P, R>
impl<P, R> UnwindSafe for EntityLocation<P, R>where
P: UnwindSafe,
R: UnwindSafe,
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