diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-07-01 09:25:29 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 01:25:29 +0200 |
commit | a1e3d4702f86f1be499ffb051fd0b4eee25a58de (patch) | |
tree | a0b8397adb706339b2246e704836385d3748e6c6 /src/main/java/at/hannibal2/skyhanni/features | |
parent | db0f40aabed9a29e0055c3c9e6a6b1159b1444bf (diff) | |
download | skyhanni-a1e3d4702f86f1be499ffb051fd0b4eee25a58de.tar.gz skyhanni-a1e3d4702f86f1be499ffb051fd0b4eee25a58de.tar.bz2 skyhanni-a1e3d4702f86f1be499ffb051fd0b4eee25a58de.zip |
Added parkour waypoints (#279)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/LaserParkour.kt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/LaserParkour.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/LaserParkour.kt new file mode 100644 index 000000000..04f26c932 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/LaserParkour.kt @@ -0,0 +1,55 @@ +package at.hannibal2.skyhanni.features.rift + +import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled +import at.hannibal2.skyhanni.utils.LorenzColor +import at.hannibal2.skyhanni.utils.LorenzVec +import net.minecraft.client.Minecraft +import net.minecraft.util.AxisAlignedBB +import net.minecraftforge.client.event.RenderWorldLastEvent +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent + +class LaserParkour { + private val config get() = SkyHanniMod.feature.rift.mirrorVerse + private val puzzleRoom = AxisAlignedBB(-298.0, 0.0, -112.0, -309.0, 63.0, -101.0) + + @SubscribeEvent + fun onRenderWorld(event: RenderWorldLastEvent) { + if (!RiftAPI.inRift()) return + if (!config.laserParkour) return + if (!puzzleRoom.isVecInside(Minecraft.getMinecraft().thePlayer.positionVector)) return + for (location in locations) { + event.drawWaypointFilled(location, LorenzColor.GREEN.toColor()) + } + } + + private var locations = mutableListOf( + LorenzVec(-304.0, 2.0, -107.0), + LorenzVec(-306.0, 4.0, -103.0), + LorenzVec(-308.0, 6.0, -105.0), + LorenzVec(-304.0, 8.0, -109.0), + LorenzVec(-300.0, 10.0, -111.0), + LorenzVec(-304.0, 12.0, -107.0), + LorenzVec(-308.0, 14.0, -103.0), + LorenzVec(-306.0, 16.0, -107.0), + LorenzVec(-302.0, 18.0, -111.0), + LorenzVec(-300.0, 20.0, -107.0), + LorenzVec(-304.0, 22.0, -111.0), + LorenzVec(-306.0, 24.0, -109.0), + LorenzVec(-302.0, 26.0, -111.0), + LorenzVec(-300.0, 28.0, -107.0), + LorenzVec(-304.0, 30.0, -103.0), + LorenzVec(-306.0, 32.0, -105.0), + LorenzVec(-302.0, 34.0, -107.0), + LorenzVec(-300.0, 36.0, -109.0), + LorenzVec(-302.0, 38.0, -105.0), + LorenzVec(-304.0, 40.0, -107.0), + LorenzVec(-306.0, 42.0, -111.0), + LorenzVec(-302.0, 44.0, -107.0), + LorenzVec(-300.0, 46.0, -103.0), + LorenzVec(-304.0, 48.0, -107.0), + LorenzVec(-308.0, 50.0, -105.0), + LorenzVec(-304.0, 52.0, -109.0), + LorenzVec(-306.0, 54.0, -111.0) + ) +}
\ No newline at end of file |