pub struct EquippableComponent {
pub slot: EquipmentSlot,
pub equip_sound: IdOr<SoundEvent>,
pub model: PrefixedOptional<Identifier>,
pub camera_overlay: PrefixedOptional<Identifier>,
pub allowed_entities: PrefixedOptional<IdSet>,
pub dispensable: Boolean,
pub swappable: Boolean,
pub damage_on_hurt: Boolean,
pub can_be_sheared: Boolean,
pub shearing_sound: IdOr<SoundEvent>,
}Expand description
Wire payload for the EquippableComponent structured item component.
Fields§
§slot: EquipmentSlot§equip_sound: IdOr<SoundEvent>§model: PrefixedOptional<Identifier>§camera_overlay: PrefixedOptional<Identifier>§allowed_entities: PrefixedOptional<IdSet>§dispensable: Boolean§swappable: Boolean§damage_on_hurt: Boolean§can_be_sheared: Boolean§shearing_sound: IdOr<SoundEvent>Trait Implementations§
Source§impl Clone for EquippableComponent
impl Clone for EquippableComponent
Source§fn clone(&self) -> EquippableComponent
fn clone(&self) -> EquippableComponent
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 EquippableComponent
impl Debug for EquippableComponent
Source§impl PartialEq for EquippableComponent
impl PartialEq for EquippableComponent
impl StructuralPartialEq for EquippableComponent
Source§impl TypeCodec for EquippableComponent
impl TypeCodec for EquippableComponent
Auto Trait Implementations§
impl Freeze for EquippableComponent
impl RefUnwindSafe for EquippableComponent
impl Send for EquippableComponent
impl Sync for EquippableComponent
impl Unpin for EquippableComponent
impl UnsafeUnpin for EquippableComponent
impl UnwindSafe for EquippableComponent
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.