Table of Contents

Class ConsumableDataComponent

Namespace
Obsidian.API.Inventory.DataComponents
Assembly
Obsidian.API.dll
public sealed class ConsumableDataComponent : IDataComponent
Inheritance
ConsumableDataComponent
Implements
Inherited Members

Properties

Animation

public required ItemAnimation Animation { get; set; }

Property Value

ItemAnimation

ConsumeSeconds

public required float ConsumeSeconds { get; set; }

Property Value

float

Effects

public List<ConsumeEffect> Effects { get; set; }

Property Value

List<ConsumeEffect>

HasConsumeParticles

public bool HasConsumeParticles { get; set; }

Property Value

bool

Identifier

public string Identifier { get; }

Property Value

string

Sound

public required SoundEvent Sound { get; set; }

Property Value

SoundEvent

Type

public DataComponentType Type { get; }

Property Value

DataComponentType

Methods

Read(INetStreamReader)

public void Read(INetStreamReader reader)

Parameters

reader INetStreamReader

Write(INetStreamWriter)

public void Write(INetStreamWriter writer)

Parameters

writer INetStreamWriter