API reference Obsidian.API.Crafting
CraftingEvaluation record
A detached evaluation of one craft. Slot lists use the input grid's row-major, zero-based indexes. Consumed counts describe one craft, and remainders are the items left by those consumed ingredients. Compare RecipeRevision with IServer.CraftingRecipeRevision before committing a cached evaluation.
public sealed record CraftingEvaluation : IEquatable<CraftingEvaluation>
In Obsidian.API.
Constructors
CraftingEvaluation(ItemStack, string, IReadOnlyList<int>, IReadOnlyList<ItemStack>, long)
public CraftingEvaluation(ItemStack Output, string RecipeIdentifier, IReadOnlyList<int> ConsumedCounts, IReadOnlyList<ItemStack> Remainders, long RecipeRevision);A detached evaluation of one craft. Slot lists use the input grid's row-major, zero-based indexes. Consumed counts describe one craft, and remainders are the items left by those consumed ingredients. Compare RecipeRevision with IServer.CraftingRecipeRevision before committing a cached evaluation.
Properties
public IReadOnlyList<int> ConsumedCounts { get; init; }public ItemStack Output { get; init; }public string RecipeIdentifier { get; init; }public long RecipeRevision { get; init; }public IReadOnlyList<ItemStack> Remainders { get; init; }