Package-level declarations
Types
Reusable anchored hotbar swap state machine:
Constraints for inventory actions. This can be used to ensure that the player is not moving or rotating while interacting with the inventory. It Also allows setting delays for opening, clicking and closing the inventory.
Manages the inventory state and timings and schedules inventory actions
Represents an inventory slot (e.g. Hotbar Slot 0, OffHand, Chestslot 5, etc.)
Additional constraints for the player inventory. This should be used when interacting with the player inventory instead of a generic container.
Properties
Functions
Finds the best slot in this iterable for mining blockState using mc.player as baseline.
Exact total capacity of this iterable to store itemStack (empty slots count as ItemStack.maxStackSize, mergeable slots as their remaining space). Contract: the slot currently holding itemStack must NOT be part of this iterable, otherwise its own remaining capacity would be double-counted and the result overestimated.
fun useHotbarSlotOrOffhand(slot: HotbarItemSlot, ticksUntilReset: Int = 1, yRot: Float = RotationManager.currentRotation?.yRot ?: player.yRot, xRot: Float = RotationManager.currentRotation?.xRot ?: player.xRot, swingMode: SwingMode = SwingMode.DO_NOT_HIDE): InteractionResult