aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/utils
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-05-25 18:38:57 -0500
committeringlettronald <inglettronald@gmail.com>2023-05-25 18:38:57 -0500
commit4198f647a35a6de7bc12242cbc8cf37d20e66cba (patch)
tree893978bf08f23c6e4945d9d8f948394fe08be865 /src/main/kotlin/dulkirmod/utils
parent7c25708669f7a8bd183adc59e5500777c5760555 (diff)
downloadDulkirMod-4198f647a35a6de7bc12242cbc8cf37d20e66cba.tar.gz
DulkirMod-4198f647a35a6de7bc12242cbc8cf37d20e66cba.tar.bz2
DulkirMod-4198f647a35a6de7bc12242cbc8cf37d20e66cba.zip
removed a useless function
Diffstat (limited to 'src/main/kotlin/dulkirmod/utils')
-rw-r--r--src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
index 229b380..7cb00f7 100644
--- a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
+++ b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
@@ -10,8 +10,6 @@ import net.minecraft.client.renderer.WorldRenderer
import net.minecraft.client.renderer.entity.RenderManager
import net.minecraft.client.renderer.vertex.DefaultVertexFormats
import net.minecraft.util.Vec3
-import net.minecraftforge.client.event.RenderWorldLastEvent
-import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import org.lwjgl.opengl.GL11
import java.awt.Color
@@ -23,7 +21,6 @@ class WorldRenderUtils {
private val tessellator: Tessellator = Tessellator.getInstance()
private val worldRenderer: WorldRenderer = tessellator.worldRenderer
private val renderManager: RenderManager = mc.renderManager
- var partialTicks: Float = 0f
fun renderString(
location: Vec3,
text: String,
@@ -177,11 +174,6 @@ class WorldRenderUtils {
GlStateManager.popMatrix()
}
- @SubscribeEvent
- fun grabPartialTicks(event: RenderWorldLastEvent) {
- this.partialTicks = event.partialTicks
- }
-
fun getRenderX() : Double {
return (mc.renderManager as AccessorRenderManager).renderX
}