namespace Minecraft.Server.FourKit.Inventory;
///
/// Represents the inventory of a Horse.
/// Slot layout: 0 = saddle, 1 = armor, 2+ = chest slots.
///
public class HorseInventory : Inventory
{
internal HorseInventory(string title, int size, int entityId)
: base(title, InventoryType.CHEST, size < 2 ? 2 : size, entityId)
{
}
///
/// Gets the item in the horse's saddle slot.
///
/// The saddle item.
public ItemStack? getSaddle() => getItem(0);
///
/// Sets the item in the horse's saddle slot.
///
/// The saddle item.
public void setSaddle(ItemStack? stack) => setItem(0, stack);
///
/// Gets the item in the horse's armor slot.
///
/// The armor item.
public ItemStack? getArmor() => getItem(1);
///
/// Sets the item in the horse's armor slot.
///
/// The armor item.
public void setArmor(ItemStack? stack) => setItem(1, stack);
}