pub struct PlayEntityEffectSpec {
pub entity_id: VarInt,
pub effect_id: EntityEffectKind,
pub amplifier: i8,
pub duration_ticks: VarInt,
pub flags: EntityEffectFlags,
}
Fields§
§entity_id: VarInt
§effect_id: EntityEffectKind
§amplifier: i8
§duration_ticks: VarInt
§flags: EntityEffectFlags
Trait Implementations§
Source§impl Clone for PlayEntityEffectSpec
impl Clone for PlayEntityEffectSpec
Source§fn clone(&self) -> PlayEntityEffectSpec
fn clone(&self) -> PlayEntityEffectSpec
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 PlayEntityEffectSpec
impl Debug for PlayEntityEffectSpec
Source§impl Deserialize for PlayEntityEffectSpec
impl Deserialize for PlayEntityEffectSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(VarInt, EntityEffectKind, i8, VarInt, EntityEffectFlags)> for PlayEntityEffectSpec
impl From<(VarInt, EntityEffectKind, i8, VarInt, EntityEffectFlags)> for PlayEntityEffectSpec
Source§fn from(
other: (VarInt, EntityEffectKind, i8, VarInt, EntityEffectFlags),
) -> Self
fn from( other: (VarInt, EntityEffectKind, i8, VarInt, EntityEffectFlags), ) -> Self
Converts to this type from the input type.
Source§impl From<PlayEntityEffectSpec> for (VarInt, EntityEffectKind, i8, VarInt, EntityEffectFlags)
impl From<PlayEntityEffectSpec> for (VarInt, EntityEffectKind, i8, VarInt, EntityEffectFlags)
Source§fn from(other: PlayEntityEffectSpec) -> Self
fn from(other: PlayEntityEffectSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayEntityEffectSpec
impl PartialEq for PlayEntityEffectSpec
Source§impl Serialize for PlayEntityEffectSpec
impl Serialize for PlayEntityEffectSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayEntityEffectSpec
Auto Trait Implementations§
impl Freeze for PlayEntityEffectSpec
impl RefUnwindSafe for PlayEntityEffectSpec
impl Send for PlayEntityEffectSpec
impl Sync for PlayEntityEffectSpec
impl Unpin for PlayEntityEffectSpec
impl UnwindSafe for PlayEntityEffectSpec
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