API reference Obsidian.API.Containers
AnvilContainer class
An anvil's window, like vanilla's AnvilMenu: the item, what's combined with it, and the result, which costs AnvilContainer.Cost levels.
public sealed class AnvilContainer : ResultContainer
In Obsidian.API.
Constructors
public AnvilContainer(string id = "anvil");Properties
public Vector BlockPosition { get; set; }Cost
public int Cost { get; set; }The levels the result costs.
public string Id { get; }ItemName
public string ItemName { get; set; }The name the player typed for the result, if any.
RepairItemCountCost
public int RepairItemCountCost { get; set; }How many of the second item a repair with materials takes; 0 takes the whole stack.
Methods
public override ItemStack GetResult();public override void SetResult(ItemStack result);Fields
public const int ResultSlot = 2;