aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-05 11:23:18 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-05 11:24:47 -0500
commit27916b0a2cd045c61c156cb0439cb8ed9cf656f7 (patch)
treece790767b43bd526b2d1735a63c5cab07eae1a35 /src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
parent860045f63761c91247f80f17ddbad8bfa365aa0f (diff)
downloadDulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.tar.gz
DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.tar.bz2
DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.zip
updated some rendering code
Diffstat (limited to 'src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt')
-rw-r--r--src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
index 7cb00f7..0728f38 100644
--- a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
+++ b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt
@@ -174,20 +174,20 @@ class WorldRenderUtils {
GlStateManager.popMatrix()
}
- fun getRenderX() : Double {
+ private fun getRenderX() : Double {
return (mc.renderManager as AccessorRenderManager).renderX
}
- fun getRenderY() : Double {
+ private fun getRenderY() : Double {
return (mc.renderManager as AccessorRenderManager).renderY
}
- fun getRenderZ() : Double {
+ private fun getRenderZ() : Double {
return (mc.renderManager as AccessorRenderManager).renderZ
}
- fun fixRenderPos(x: Double, y: Double, z: Double) : Array<Double> {
- return arrayOf(x + getRenderX(), y + getRenderY(), z + getRenderZ())
+ fun fixRenderPos(x: Double, y: Double, z: Double) : Triple<Double, Double, Double> {
+ return Triple(x + getRenderX(), y + getRenderY(), z + getRenderZ())
}
}
} \ No newline at end of file