pub struct Equippable {
pub slot: String,
pub asset_id: Option<String>,
pub allowed_entities: Vec<String>,
pub kind: PieceKind,
}Expand description
An item’s minecraft:equippable facts in the pinned item data.
Fields§
§slot: StringThe slot the item declares, in the game’s spelling (body, offhand).
asset_id: Option<String>The equipment asset the item draws through, if any.
allowed_entities: Vec<String>The entity ids and #tags the item admits; empty when it names none.
kind: PieceKindThe kind of piece this is.
Implementations§
Source§impl Equippable
impl Equippable
Sourcepub fn declared_slot(&self) -> Option<EquipSlot>
pub fn declared_slot(&self) -> Option<EquipSlot>
The declared slot as the DSL’s slot type.
Trait Implementations§
Source§impl Clone for Equippable
impl Clone for Equippable
Source§impl Debug for Equippable
impl Debug for Equippable
Source§impl<'de> Deserialize<'de> for Equippable
impl<'de> Deserialize<'de> for Equippable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Equippable
Source§impl PartialEq for Equippable
impl PartialEq for Equippable
impl StructuralPartialEq 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 UnsafeUnpin 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