Skip to content

API reference Obsidian.API

MenuSlotRange record struct

A range of a menu window's slots that a shift-click moves a stack into (see MenuContainer.QuickMove), like the bounds vanilla's moveItemStackTo takes.

public readonly record struct MenuSlotRange : IEquatable<MenuSlotRange>

In Obsidian.API.

Constructors

MenuSlotRange(int, int, bool)

public MenuSlotRange(int Start, int End, bool Reverse = false);

A range of a menu window's slots that a shift-click moves a stack into (see MenuContainer.QuickMove), like the bounds vanilla's moveItemStackTo takes.

Parameters

Start
The first slot, as the window numbers them.
End
The slot after the last.
Reverse
Whether the range is filled from its last slot.

Properties

End

public int End { get; init; }

The slot after the last.

Reverse

public bool Reverse { get; init; }

Whether the range is filled from its last slot.

Start

public int Start { get; init; }

The first slot, as the window numbers them.

On this page