Skip to content

API reference Obsidian.API.Loot.Entries

LootPoolEntry class

An entry of a loot pool, like vanilla's LootPoolEntryContainer.

public abstract class LootPoolEntry

In Obsidian.API.

Constructors

protected LootPoolEntry();

Properties

Conditions

public ImmutableArray<ILootCondition> Conditions { get; init; }

The entry only takes part in a roll when all of these pass.

Methods

Expand(LootContext, Action<LootPoolSingletonEntry>)

public abstract bool Expand(LootContext context, Action<LootPoolSingletonEntry> output);

Passes the entries this one contributes to a roll to output; returns whether it contributed.

On this page