diff options
| author | Kevin <92656833+kevinthegreat1@users.noreply.github.com> | 2024-01-01 14:50:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-01 01:50:01 -0500 |
| commit | 37eb5bfad25b1e0c3326ed27744c38f81513b5e4 (patch) | |
| tree | f218b51ff9fe54597f7126115547fb15f12bbb4e /src/main/java/de/hysky/skyblocker/utils/waypoint | |
| parent | 8005dd9afe963a461619ee3da603d8202292840b (diff) | |
| download | Skyblocker-37eb5bfad25b1e0c3326ed27744c38f81513b5e4.tar.gz Skyblocker-37eb5bfad25b1e0c3326ed27744c38f81513b5e4.tar.bz2 Skyblocker-37eb5bfad25b1e0c3326ed27744c38f81513b5e4.zip | |
Waterboard Solver (#467)
* Add waterboard detection and parsing
* Solve waterboard
* Render lines through walls
* Fix lines
* Add lever highlights
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/utils/waypoint')
| -rw-r--r-- | src/main/java/de/hysky/skyblocker/utils/waypoint/Waypoint.java | 8 |
1 files changed, 8 insertions, 0 deletions
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<Type> 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; } |
