pub struct UseEntity {
pub target: i32,
pub mouse: i32,
pub x: Option<f32>,
pub y: Option<f32>,
pub z: Option<f32>,
}Expand description
use_entity (serverbound play, id 0x02).
Fields§
§target: i32target
mouse: i32mouse
x: Option<f32>x
y: Option<f32>y
z: Option<f32>z
Trait Implementations§
Source§impl Decode for UseEntity
impl Decode for UseEntity
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for UseEntity
impl Encode for UseEntity
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<UseEntity> for ServerboundPlayPacket
impl From<UseEntity> for ServerboundPlayPacket
impl StructuralPartialEq for UseEntity
Auto Trait Implementations§
impl Freeze for UseEntity
impl RefUnwindSafe for UseEntity
impl Send for UseEntity
impl Sync for UseEntity
impl Unpin for UseEntity
impl UnsafeUnpin for UseEntity
impl UnwindSafe for UseEntity
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