Skip to content

API reference Obsidian.API.Inventory.DataComponents

ComponentConsumeEffect record

The five 26.3 consume-effect payloads, selected by their registry ID.

public sealed record ComponentConsumeEffect : IConsumeEffect, IEquatable<ComponentConsumeEffect>

In Obsidian.API.

Constructors

public ComponentConsumeEffect();

Properties

public float Diameter { get; init; }public bool DirectionalParticles { get; init; }public ImmutableArray<PotionEffectData> Effects { get; init; }public int Id { get; init; }public float Probability { get; init; }public IdSet RemovedEffects { get; init; }public SoundEvent Sound { get; init; }public string Type { get; }

Methods

public bool Equals(ComponentConsumeEffect other);public override int GetHashCode();public IConsumeEffect Read(INetStreamReader reader);public void Write(INetStreamWriter writer);

On this page