aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt
blob: 6863479e30607b76c935c36a11d2110ced9cbd03 (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
package com.dulkirfabric.features

import com.dulkirfabric.events.WorldRenderLastEvent
import com.dulkirfabric.util.WorldRenderUtils
import meteordevelopment.orbit.EventHandler
import net.minecraft.util.math.Box
import java.awt.Color

object RenderBoxTest {

    @EventHandler
    fun onRender(event: WorldRenderLastEvent) {
        WorldRenderUtils.drawBox(
            event.context, Box(0.0, 0.0, 0.0, 1.0, 1.0, 1.0),
            Color(255, 255, 255, 255), 10f, true
        )

        WorldRenderUtils.drawBox(
            event.context, Box(2.0, 0.0, 0.0, 3.0, 1.0, 1.0),
            Color(1, 255, 1, 255), 10f, false
        )

    }
}