Skip to content

API reference Obsidian.API.Inventory.DataComponents

PotionContentsDataComponent record

public sealed record PotionContentsDataComponent : DataComponent, IEquatable<PotionContentsDataComponent>

In Obsidian.API.

Constructors

public PotionContentsDataComponent();

Properties

public int? CustomColor { get; init; }public ImmutableArray<PotionEffectData> CustomEffects { get; init; }public string CustomName { get; init; }public override string Identifier { get; }public Potion? Potion { get; init; }public override DataComponentType Type { get; }

Methods

public bool Equals(PotionContentsDataComponent other);public override int GetHashCode();public override void Write(INetStreamWriter writer);

On this page