From e610477599d3031471591b7f17a850954e509274 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Wed, 24 Aug 2022 12:31:57 +0200 Subject: changing the size of the render blocks for minions, ashfang blazing souls and gravity orbs --- .../java/at/hannibal2/skyhanni/test/GriffinUtils.kt | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/test') diff --git a/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt b/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt index 70ebb954f..d9da2745c 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt @@ -16,7 +16,15 @@ object GriffinUtils { GriffinJavaUtils.drawWaypoint(location, partialTicks, color.toColor(), beacon) } - fun RenderWorldLastEvent.drawWaypointFilled(location: LorenzVec, color: Color, seeThroughBlocks: Boolean = false, beacon: Boolean = false) { + fun RenderWorldLastEvent.drawWaypointFilled( + location: LorenzVec, + color: Color, + seeThroughBlocks: Boolean = false, + beacon: Boolean = false, + extraSize: Double = 0.0, + extraSizeTopY: Double = extraSize, + extraSizeBottomY: Double = extraSize + ) { val (viewerX, viewerY, viewerZ) = RenderUtils.getViewerPos(partialTicks) val x = location.x - viewerX val y = location.y - viewerY @@ -28,7 +36,12 @@ object GriffinUtils { GlStateManager.disableCull() } RenderUtils.drawFilledBoundingBox( - AxisAlignedBB(x, y, z, x + 1, y + 1, z + 1).expandBlock(), + AxisAlignedBB(x - extraSize, + y - extraSizeBottomY, + z - extraSize, + x + 1 + extraSize, + y + 1 + extraSizeTopY, + z + 1 + extraSize).expandBlock(), color, (0.1f + 0.005f * distSq.toFloat()).coerceAtLeast(0.2f) ) @@ -48,7 +61,7 @@ object GriffinUtils { p2: LorenzVec, color: LorenzColor, lineWidth: Int, - depth: Boolean + depth: Boolean, ) { GriffinJavaUtils.draw3DLine(p1, p2, color.toColor(), lineWidth, depth, partialTicks) -- cgit