pub struct EntityPropertySpec {
pub key: String,
pub value: f64,
pub modifiers: CountedArray<EntityPropertyModifierSpec, VarInt>,
}
Fields§
§key: String
§value: f64
§modifiers: CountedArray<EntityPropertyModifierSpec, VarInt>
Trait Implementations§
Source§impl Clone for EntityPropertySpec
impl Clone for EntityPropertySpec
Source§fn clone(&self) -> EntityPropertySpec
fn clone(&self) -> EntityPropertySpec
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 EntityPropertySpec
impl Debug for EntityPropertySpec
Source§impl Deserialize for EntityPropertySpec
impl Deserialize for EntityPropertySpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(String, f64, CountedArray<EntityPropertyModifierSpec, VarInt>)> for EntityPropertySpec
impl From<(String, f64, CountedArray<EntityPropertyModifierSpec, VarInt>)> for EntityPropertySpec
Source§fn from(
other: (String, f64, CountedArray<EntityPropertyModifierSpec, VarInt>),
) -> Self
fn from( other: (String, f64, CountedArray<EntityPropertyModifierSpec, VarInt>), ) -> Self
Converts to this type from the input type.
Source§impl From<EntityPropertySpec> for (String, f64, CountedArray<EntityPropertyModifierSpec, VarInt>)
impl From<EntityPropertySpec> for (String, f64, CountedArray<EntityPropertyModifierSpec, VarInt>)
Source§fn from(other: EntityPropertySpec) -> Self
fn from(other: EntityPropertySpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntityPropertySpec
impl PartialEq for EntityPropertySpec
Source§impl Serialize for EntityPropertySpec
impl Serialize for EntityPropertySpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for EntityPropertySpec
Auto Trait Implementations§
impl Freeze for EntityPropertySpec
impl RefUnwindSafe for EntityPropertySpec
impl Send for EntityPropertySpec
impl Sync for EntityPropertySpec
impl Unpin for EntityPropertySpec
impl UnwindSafe for EntityPropertySpec
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