API reference Obsidian.API.Inventory.DataComponents
PluginComponentType<TValue> class
A plugin's data component type, from IPluginRegistry.RegisterComponentType: read, set and remove its values on a stack with ItemStack.TryGet, ItemStack.Set and ItemStack.Remove.
public sealed class PluginComponentType<TValue>
In Obsidian.API.
Properties
Identifier
public string Identifier { get; }The type's identifier, in its plugin's namespace, which stacks are saved with.
Type
public DataComponentType Type { get; }The type's id, after vanilla's: it keeps it while the server runs, across reloads of its plugin.
Methods
public override string ToString();