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
ConsumeSeconds
public required float ConsumeSeconds { get; set; }
Property Value
Effects
public List<ConsumeEffect> Effects { get; set; }
Property Value
HasConsumeParticles
public bool HasConsumeParticles { get; set; }
Property Value
Identifier
public string Identifier { get; }
Property Value
Sound
public required SoundEvent Sound { get; set; }
Property Value
Type
public DataComponentType Type { get; }
Property Value
Methods
Read(INetStreamReader)
public void Read(INetStreamReader reader)
Parameters
reader
INetStreamReader
Write(INetStreamWriter)
public void Write(INetStreamWriter writer)
Parameters
writer
INetStreamWriter