1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package at.hannibal2.skyhanni.mixinhooks
import at.hannibal2.skyhanni.events.GuiRenderItemEvent
import at.hannibal2.skyhanni.events.RenderRealOverlayEvent
import net.minecraft.client.gui.FontRenderer
import net.minecraft.item.ItemStack
import net.minecraft.util.ResourceLocation
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo
val RES_ITEM_GLINT = ResourceLocation("textures/misc/enchanted_item_glint.png")
var skipGlint = false
fun renderItemOverlayPost(
fr: FontRenderer,
stack: ItemStack?,
xPosition: Int,
yPosition: Int,
text: String?,
ci: CallbackInfo
) {
GuiRenderItemEvent.RenderOverlayEvent.Post(
fr,
stack,
xPosition,
yPosition,
text
).postAndCatch()
}
fun renderItemReturn(stack: ItemStack, x: Int, y: Int, ci: CallbackInfo) {
RenderRealOverlayEvent(stack, x, y).postAndCatch()
}
|