API reference Obsidian.API.Inventory.DataComponents
PluginDataComponent record
A plugin component on a stack, kept in its saved form, so that the stack holds nothing of the plugin's. It outlives the plugin unloading, saved as it was, and its plugin reads it again once it's back.
public sealed record PluginDataComponent : DataComponent, IEquatable<PluginDataComponent>
In Obsidian.API.
Remarks
It's sent to clients only while its type has a network codec, which its plugin gave. Comparing two compares their saved forms.
Properties
public override string Identifier { get; }public override DataComponentType Type { get; }Methods
public bool Equals(PluginDataComponent other);public override int GetHashCode();Write(INetStreamWriter)
public override void Write(INetStreamWriter writer);Writes the value with its type's network codec.