module Rosegold::SlotOffsets::InventoryMenuOffsets

Overview

InventoryMenu slots: [crafting_result(0), crafting(1-4), armor(5-8), main(9-35), hotbar(36-44), offhand(45)]

Defined in:

rosegold/inventory/slot_offsets.cr

Class Method Summary

Class Method Detail

def self.hotbar_slot_index(hotbar_nr : Int32) : Int32 #

Get the absolute slot index for a hotbar slot in inventory menu


[View source]
def self.hotbar_start_index : Int32 #

Get the start index for hotbar slots in inventory menu


[View source]
def self.main_inventory_start_index : Int32 #

Get the start index for main inventory slots in inventory menu


[View source]
def self.offhand_slot_index : Int32 #

Get the absolute slot index for offhand in inventory menu


[View source]