pub struct Weapon {
pub item_damage_per_attack: i32,
pub disable_blocking_for_seconds: f32,
}Fields§
§item_damage_per_attack: i32§disable_blocking_for_seconds: f32Implementations§
Trait Implementations§
Source§impl AzaleaRead for Weapon
impl AzaleaRead for Weapon
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for Weapon
impl AzaleaWrite for Weapon
Source§impl DataComponentTrait for Weapon
impl DataComponentTrait for Weapon
const KIND: DataComponentKind = DataComponentKind::Weapon
Source§impl DefaultableComponent for Weapon
impl DefaultableComponent for Weapon
fn default_for_item(item: Item) -> Option<Self>
Source§impl From<Weapon> for DataComponentUnion
impl From<Weapon> for DataComponentUnion
impl StructuralPartialEq for Weapon
Auto Trait Implementations§
impl Freeze for Weapon
impl RefUnwindSafe for Weapon
impl Send for Weapon
impl Sync for Weapon
impl Unpin for Weapon
impl UnwindSafe for Weapon
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