Skip to content

API reference Obsidian.API.Loot.Entries

LootPoolSingletonEntry class

An entry that can be picked by a pool roll, like vanilla's LootPoolSingletonContainer.

public abstract class LootPoolSingletonEntry : LootPoolEntry

In Obsidian.API.

Constructors

protected LootPoolSingletonEntry();

Properties

Functions

public ImmutableArray<LootFunction> Functions { get; init; }

Applied to every stack this entry generates.

Quality

public int Quality { get; init; }

Added to LootPoolSingletonEntry.Weight once per point of luck.

public int Weight { get; init; }

Methods

protected abstract void CreateItems(Action<ItemStack> output, LootContext context);

CreateItemStacks(Action<ItemStack>, LootContext)

public void CreateItemStacks(Action<ItemStack> output, LootContext context);

Generates this entry's stacks, passes each through LootPoolSingletonEntry.Functions and then to output.

public override bool Expand(LootContext context, Action<LootPoolSingletonEntry> output);public int GetWeight(float luck);

On this page