pub enum EntityPropertyModifierOperation {
AddSubtractAmount,
AddSubtractAmountPercentOfCurrent,
MultiplyByAmountPercent,
}
Variants§
Implementations§
Source§impl EntityPropertyModifierOperation
impl EntityPropertyModifierOperation
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: u8, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> u8
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for EntityPropertyModifierOperation
impl Clone for EntityPropertyModifierOperation
Source§fn clone(&self) -> EntityPropertyModifierOperation
fn clone(&self) -> EntityPropertyModifierOperation
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 Deserialize for EntityPropertyModifierOperation
impl Deserialize for EntityPropertyModifierOperation
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for EntityPropertyModifierOperation
impl PartialEq for EntityPropertyModifierOperation
Source§fn eq(&self, other: &EntityPropertyModifierOperation) -> bool
fn eq(&self, other: &EntityPropertyModifierOperation) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for EntityPropertyModifierOperation
impl Serialize for EntityPropertyModifierOperation
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for EntityPropertyModifierOperation
Auto Trait Implementations§
impl Freeze for EntityPropertyModifierOperation
impl RefUnwindSafe for EntityPropertyModifierOperation
impl Send for EntityPropertyModifierOperation
impl Sync for EntityPropertyModifierOperation
impl Unpin for EntityPropertyModifierOperation
impl UnwindSafe for EntityPropertyModifierOperation
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