API reference Obsidian.API.Inventory.DataComponents
EquippableDataComponent record
public sealed record EquippableDataComponent : DataComponent, IEquatable<EquippableDataComponent>
In Obsidian.API.
Properties
public ImmutableArray<int>? AllowedEntities { get; init; }public IdSet? AllowedEntitySet { get; init; }public EquipmentAssets? AssetId { get; init; }public string AssetIdentifier { get; init; }public string CameraOverlay { get; init; }public bool CanBeSheared { get; init; }public bool DamageOnHurt { get; init; }public bool Dispensable { get; init; }public bool EquipOnInteract { get; init; }public required SoundEvent EquipSound { get; init; }public override string Identifier { get; }public SoundEvent ShearingSound { get; init; }public required EquipmentSlot Slot { get; init; }public bool Swappable { get; init; }public override DataComponentType Type { get; }Methods
public bool Equals(EquippableDataComponent other);public override int GetHashCode();public override void Write(INetStreamWriter writer);