[−][src]Struct ozelot::clientbound::CombatEvent
Methods
impl CombatEvent
[src]
pub fn new_raw(
event: i32,
duration_playerid: Option<i32>,
entity_id: Option<i32>,
message: Option<String>
) -> ClientboundPacket
[src]
event: i32,
duration_playerid: Option<i32>,
entity_id: Option<i32>,
message: Option<String>
) -> ClientboundPacket
pub fn get_event(&self) -> &i32
[src]
get the event field (UNDOCUMENTED)
pub fn get_duration_playerid(&self) -> &Option<i32>
[src]
Get the duration or player ID, depending on type of event
pub fn get_entity_id(&self) -> &Option<i32>
[src]
Get the entity ID if packet action is 'end combat' or 'entity dead'
pub fn get_message(&self) -> &Option<String>
[src]
get the message field (UNDOCUMENTED)
Trait Implementations
impl Clone for CombatEvent
[src]
fn clone(&self) -> CombatEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CombatEvent
[src]
impl PartialEq<CombatEvent> for CombatEvent
[src]
fn eq(&self, other: &CombatEvent) -> bool
[src]
fn ne(&self, other: &CombatEvent) -> bool
[src]
impl StructuralPartialEq for CombatEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for CombatEvent
impl Send for CombatEvent
impl Sync for CombatEvent
impl Unpin for CombatEvent
impl UnwindSafe for CombatEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,