InstrumentData record
public sealed record InstrumentData : INetworkSerializable<InstrumentData>, IEquatable<InstrumentData>
In Obsidian.API.
Constructors
public InstrumentData();Properties
public ChatMessage Description { get; init; }public int DurabilityDamage { get; init; }Identifier
public string Identifier { get; init; }The registry id of a vanilla instrument (e.g. minecraft:ponder_goat_horn), or null for a custom one. Vanilla instruments are sent by registry id; custom ones are sent with their data.
public float Range { get; init; }public SoundEvent SoundEvent { get; init; }public float UseDuration { get; init; }Methods
public static InstrumentData Read(INetStreamReader reader);public static void Write(InstrumentData value, INetStreamWriter writer);