aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-23 13:00:01 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-23 13:00:01 +0200
commit51616771a0ebb98b7b63703562ad334ac418d1a6 (patch)
tree34bbc0bb1bc55840b482b88aa1b1953275d5354a /src/main/java/at/hannibal2/skyhanni/test
parent57b351f66232fd7323234ab3e407729667c40143 (diff)
downloadskyhanni-51616771a0ebb98b7b63703562ad334ac418d1a6.tar.gz
skyhanni-51616771a0ebb98b7b63703562ad334ac418d1a6.tar.bz2
skyhanni-51616771a0ebb98b7b63703562ad334ac418d1a6.zip
added display to show last time a minion was cleared
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt16
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt12
2 files changed, 22 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt b/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt
index bfbb95302..70ebb954f 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/GriffinUtils.kt
@@ -16,14 +16,17 @@ object GriffinUtils {
GriffinJavaUtils.drawWaypoint(location, partialTicks, color.toColor(), beacon)
}
- fun RenderWorldLastEvent.drawWaypointFilled(location: LorenzVec, color: Color, beacon: Boolean = false) {
+ fun RenderWorldLastEvent.drawWaypointFilled(location: LorenzVec, color: Color, seeThroughBlocks: Boolean = false, beacon: Boolean = false) {
val (viewerX, viewerY, viewerZ) = RenderUtils.getViewerPos(partialTicks)
val x = location.x - viewerX
val y = location.y - viewerY
val z = location.z - viewerZ
val distSq = x * x + y * y + z * z
- GlStateManager.disableDepth()
- GlStateManager.disableCull()
+
+ if (seeThroughBlocks) {
+ GlStateManager.disableDepth()
+ GlStateManager.disableCull()
+ }
RenderUtils.drawFilledBoundingBox(
AxisAlignedBB(x, y, z, x + 1, y + 1, z + 1).expandBlock(),
color,
@@ -33,8 +36,11 @@ object GriffinUtils {
if (distSq > 5 * 5 && beacon) RenderUtils.renderBeaconBeam(x, y + 1, z, color.rgb, 1.0f, partialTicks)
GlStateManager.disableLighting()
GlStateManager.enableTexture2D()
- GlStateManager.enableDepth()
- GlStateManager.enableCull()
+
+ if (seeThroughBlocks) {
+ GlStateManager.enableDepth()
+ GlStateManager.enableCull()
+ }
}
fun RenderWorldLastEvent.draw3DLine(
diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
index 67f00bee9..851a8c207 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
@@ -37,7 +37,17 @@ class LorenzTest {
}
fun testCommand(args: Array<String>) {
- togglePacketLog = !togglePacketLog
+// togglePacketLog = !togglePacketLog
+
+// for (line in (Minecraft.getMinecraft().ingameGUI.tabList as AccessorGuiPlayerTabOverlay).footer.unformattedText
+// .split("\n")) {
+// println("footer: '$line'")
+// }
+//
+//
+// for (line in TabListUtils.getTabList()) {
+// println("tablist: '$line'")
+// }
}
}