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