pub struct Equippable {
pub slot: VarInt,
pub equip_sound: IdOr<SoundEvent>,
pub model: PrefixedOptional<Identifier>,
pub camera_overlay: PrefixedOptional<Identifier>,
pub allowed_entities: PrefixedOptional<IDSet>,
pub dispensable: bool,
pub swappable: bool,
pub damage_on_hurt: bool,
}Fields§
§slot: VarInt§equip_sound: IdOr<SoundEvent>§model: PrefixedOptional<Identifier>§camera_overlay: PrefixedOptional<Identifier>§allowed_entities: PrefixedOptional<IDSet>§dispensable: bool§swappable: bool§damage_on_hurt: boolImplementations§
Source§impl Equippable
impl Equippable
pub fn new( slot: VarInt, equip_sound: IdOr<SoundEvent>, model: PrefixedOptional<Identifier>, camera_overlay: PrefixedOptional<Identifier>, allowed_entities: PrefixedOptional<IDSet>, dispensable: bool, swappable: bool, damage_on_hurt: bool, ) -> Self
Trait Implementations§
Source§impl Clone for Equippable
impl Clone for Equippable
Source§fn clone(&self) -> Equippable
fn clone(&self) -> Equippable
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 Equippable
impl Debug for Equippable
Source§impl Field for Equippable
impl Field for Equippable
Auto Trait Implementations§
impl Freeze for Equippable
impl RefUnwindSafe for Equippable
impl Send for Equippable
impl Sync for Equippable
impl Unpin for Equippable
impl UnwindSafe for Equippable
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