blob: 115cef4148f9d45e2e02601b6e7886547735efb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package at.hannibal2.skyhanni.test
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.RenderInventoryItemTipEvent
import at.hannibal2.skyhanni.utils.OSUtils
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class TestShowSlotNumber {
@SubscribeEvent
fun onRenderItemTip(event: RenderInventoryItemTipEvent) {
if (OSUtils.isKeyHeld(SkyHanniMod.feature.dev.showSlotNumberKey)) {
val slotIndex = event.slot.slotIndex
event.stackTip = "$slotIndex"
}
}
}
|