Move the clickboxHeightOffset const to a companion object
This commit is contained in:
parent
ca70cc7fb1
commit
7a4989eec8
|
@ -14,7 +14,6 @@ import net.minecraft.client.Minecraft
|
||||||
import net.minecraft.network.chat.TranslatableComponent
|
import net.minecraft.network.chat.TranslatableComponent
|
||||||
import org.lwjgl.opengl.GL20
|
import org.lwjgl.opengl.GL20
|
||||||
|
|
||||||
const val clickboxHeightOffset: Int = 80
|
|
||||||
class ClickBox(
|
class ClickBox(
|
||||||
x: Double, y: Double,
|
x: Double, y: Double,
|
||||||
color: Int = 0x6C9E9D,
|
color: Int = 0x6C9E9D,
|
||||||
|
@ -59,8 +58,9 @@ class ClickBox(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private companion object {
|
companion object {
|
||||||
const val inclination: Double = 2.5
|
const val clickboxHeightOffset: Int = 80
|
||||||
|
private const val inclination: Double = 2.5
|
||||||
}
|
}
|
||||||
override fun render(poseStack: PoseStack?) {
|
override fun render(poseStack: PoseStack?) {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
|
|
Loading…
Reference in New Issue