[][src]Struct ozelot::clientbound::CombatEvent

pub struct CombatEvent { /* fields omitted */ }

Methods

impl CombatEvent[src]

pub fn new_raw(
    event: i32,
    duration_playerid: Option<i32>,
    entity_id: Option<i32>,
    message: Option<String>
) -> ClientboundPacket
[src]

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]

impl Debug for CombatEvent[src]

impl PartialEq<CombatEvent> for CombatEvent[src]

impl StructuralPartialEq for CombatEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.