aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/lorenz/mod/mixinhooks
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-14 11:13:53 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-14 11:13:53 +0200
commitb2108f37f551fba5cb43f4919d69e5db7bb1e44c (patch)
tree04efb1b7815e2e8625ed00810bee711ca2a132a7 /src/main/java/at/lorenz/mod/mixinhooks
parent26c36ab5f0135b50dbe0a983023d80504e2f66b4 (diff)
downloadskyhanni-b2108f37f551fba5cb43f4919d69e5db7bb1e44c.tar.gz
skyhanni-b2108f37f551fba5cb43f4919d69e5db7bb1e44c.tar.bz2
skyhanni-b2108f37f551fba5cb43f4919d69e5db7bb1e44c.zip
remove old skytils code
Diffstat (limited to 'src/main/java/at/lorenz/mod/mixinhooks')
-rw-r--r--src/main/java/at/lorenz/mod/mixinhooks/RenderItemHook.kt59
1 files changed, 1 insertions, 58 deletions
diff --git a/src/main/java/at/lorenz/mod/mixinhooks/RenderItemHook.kt b/src/main/java/at/lorenz/mod/mixinhooks/RenderItemHook.kt
index 0291782b7..f978fe823 100644
--- a/src/main/java/at/lorenz/mod/mixinhooks/RenderItemHook.kt
+++ b/src/main/java/at/lorenz/mod/mixinhooks/RenderItemHook.kt
@@ -10,16 +10,6 @@ val RES_ITEM_GLINT = ResourceLocation("textures/misc/enchanted_item_glint.png")
var skipGlint = false
-//fun renderRarity(stack: ItemStack, x: Int, y: Int, ci: CallbackInfo) {
-// if (Utils.inSkyblock && Skytils.config.showItemRarity) {
-// if (mc.currentScreen != null) {
-// if (isStorageMenuActive || isTradeWindowActive || isCustomAHActive) {
-// renderRarity(stack, x, y)
-// }
-// }
-// }
-//}
-
fun renderItemOverlayPost(
fr: FontRenderer,
stack: ItemStack?,
@@ -35,51 +25,4 @@ fun renderItemOverlayPost(
yPosition,
text
).postAndCatch()
-}
-
-//fun renderItemPre(stack: ItemStack, model: IBakedModel, ci: CallbackInfo) {
-// if (!Utils.inSkyblock) return
-// if (stack.item === Items.skull) {
-// val scale = Skytils.config.largerHeadScale.toDouble()
-// GlStateManager.scale(scale, scale, scale)
-// }
-//}
-
-//fun modifyGlintRendering(stack: ItemStack, model: IBakedModel, ci: CallbackInfo) {
-// if (Utils.inSkyblock) {
-// val itemId = getSkyBlockItemID(stack)
-// if (GlintCustomizer.glintColors.containsKey(itemId)) {
-// val color = GlintCustomizer.glintColors[itemId]!!.toInt()
-// GlStateManager.depthMask(false)
-// GlStateManager.depthFunc(514)
-// GlStateManager.disableLighting()
-// GlStateManager.blendFunc(768, 1)
-// mc.textureManager.bindTexture(RES_ITEM_GLINT)
-// GlStateManager.matrixMode(5890)
-// GlStateManager.pushMatrix()
-// GlStateManager.scale(8.0f, 8.0f, 8.0f)
-// val f = (Minecraft.getSystemTime() % 3000L).toFloat() / 3000.0f / 8.0f
-// GlStateManager.translate(f, 0.0f, 0.0f)
-// GlStateManager.rotate(-50.0f, 0.0f, 0.0f, 1.0f)
-// (mc.renderItem as AccessorRenderItem).invokeRenderModel(model, color)
-// GlStateManager.popMatrix()
-// GlStateManager.pushMatrix()
-// GlStateManager.scale(8.0f, 8.0f, 8.0f)
-// val f1 = (Minecraft.getSystemTime() % 4873L).toFloat() / 4873.0f / 8.0f
-// GlStateManager.translate(-f1, 0.0f, 0.0f)
-// GlStateManager.rotate(10.0f, 0.0f, 0.0f, 1.0f)
-// (mc.renderItem as AccessorRenderItem).invokeRenderModel(model, color)
-// GlStateManager.popMatrix()
-// GlStateManager.matrixMode(5888)
-// GlStateManager.blendFunc(770, 771)
-// GlStateManager.enableLighting()
-// GlStateManager.depthFunc(515)
-// GlStateManager.depthMask(true)
-// mc.textureManager.bindTexture(TextureMap.locationBlocksTexture)
-// ci.cancel()
-//
-// //Since we prematurely exited, we need to reset the matrices
-// GlStateManager.popMatrix()
-// }
-// }
-//} \ No newline at end of file
+} \ No newline at end of file