blob: 3b8dd925d9bca433c0b13aab2305ac1e3086eea5 (
plain)
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
|
package at.hannibal2.skyhanni.mixinhooks
import at.hannibal2.skyhanni.events.GuiRenderItemEvent
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()
}
|