Table of Contents

Struct Item

Namespace
Obsidian.API.Inventory
Assembly
Obsidian.API.dll
public readonly struct Item : INetworkSerializable<Item>
Implements
Inherited Members

Constructors

Item(Item)

public Item(Item item)

Parameters

item Item

Item(int, string, Material)

public Item(int id, string unlocalizedName, Material type)

Parameters

id int
unlocalizedName string
type Material

Properties

Id

public required short Id { get; init; }

Property Value

short

Type

public required Material Type { get; init; }

Property Value

Material

UnlocalizedName

public required string UnlocalizedName { get; init; }

Property Value

string

Explicit Interface Implementations

Read(INetStreamReader)

static Item Read(INetStreamReader reader)

Parameters

reader INetStreamReader

Returns

Item

Write(Item, INetStreamWriter)

static void Write(Item value, INetStreamWriter writer)

Parameters

value Item
writer INetStreamWriter