From 37eb5bfad25b1e0c3326ed27744c38f81513b5e4 Mon Sep 17 00:00:00 2001 From: Kevin <92656833+kevinthegreat1@users.noreply.github.com> Date: Mon, 1 Jan 2024 14:50:01 +0800 Subject: Waterboard Solver (#467) * Add waterboard detection and parsing * Solve waterboard * Render lines through walls * Fix lines * Add lever highlights --- src/main/java/de/hysky/skyblocker/utils/waypoint/Waypoint.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/de/hysky/skyblocker/utils/waypoint') diff --git a/src/main/java/de/hysky/skyblocker/utils/waypoint/Waypoint.java b/src/main/java/de/hysky/skyblocker/utils/waypoint/Waypoint.java index 3a1d364f..2f9c9f63 100644 --- a/src/main/java/de/hysky/skyblocker/utils/waypoint/Waypoint.java +++ b/src/main/java/de/hysky/skyblocker/utils/waypoint/Waypoint.java @@ -19,6 +19,10 @@ public class Waypoint { final boolean throughWalls; private boolean shouldRender; + public Waypoint(BlockPos pos, Type type, float[] colorComponents) { + this(pos, type, colorComponents, DEFAULT_HIGHLIGHT_ALPHA); + } + public Waypoint(BlockPos pos, Supplier typeSupplier, float[] colorComponents) { this(pos, typeSupplier, colorComponents, DEFAULT_HIGHLIGHT_ALPHA, DEFAULT_LINE_WIDTH); } @@ -62,6 +66,10 @@ public class Waypoint { this.shouldRender = true; } + public void toggle() { + this.shouldRender = !this.shouldRender; + } + protected float[] getColorComponents() { return colorComponents; } -- cgit