pub struct BlocksAttacksComponent {
pub block_delay_seconds: Float,
pub disable_cooldown_scale: Float,
pub damage_reductions: PrefixedArray<DamageReduction>,
pub item_damage_threshold: Float,
pub item_damage_base: Float,
pub item_damage_factor: Float,
pub bypassed_by: PrefixedOptional<IdSet>,
pub block_sound: PrefixedOptional<IdOr<SoundEvent>>,
pub disable_sound: PrefixedOptional<IdOr<SoundEvent>>,
}Expand description
Wire payload for the BlocksAttacksComponent structured item component.
Fields§
§block_delay_seconds: Float§disable_cooldown_scale: Float§damage_reductions: PrefixedArray<DamageReduction>§item_damage_threshold: Float§item_damage_base: Float§item_damage_factor: Float§bypassed_by: PrefixedOptional<IdSet>§block_sound: PrefixedOptional<IdOr<SoundEvent>>§disable_sound: PrefixedOptional<IdOr<SoundEvent>>Trait Implementations§
Source§impl Clone for BlocksAttacksComponent
impl Clone for BlocksAttacksComponent
Source§fn clone(&self) -> BlocksAttacksComponent
fn clone(&self) -> BlocksAttacksComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BlocksAttacksComponent
impl Debug for BlocksAttacksComponent
Source§impl PartialEq for BlocksAttacksComponent
impl PartialEq for BlocksAttacksComponent
impl StructuralPartialEq for BlocksAttacksComponent
Source§impl TypeCodec for BlocksAttacksComponent
impl TypeCodec for BlocksAttacksComponent
Auto Trait Implementations§
impl Freeze for BlocksAttacksComponent
impl RefUnwindSafe for BlocksAttacksComponent
impl Send for BlocksAttacksComponent
impl Sync for BlocksAttacksComponent
impl Unpin for BlocksAttacksComponent
impl UnsafeUnpin for BlocksAttacksComponent
impl UnwindSafe for BlocksAttacksComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.