diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-09-07 14:20:05 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-09-07 14:20:05 +0200 |
commit | 5fd3bcd10cd41f016acb4658bc441fb21bf14e85 (patch) | |
tree | 29e2b5c092a5b4d4db569522779088e20b7235bc /src/main/java/at/hannibal2/skyhanni/features/nether | |
parent | 12899c2863ae42ef7bd912c8639ce5c1ed3e95c1 (diff) | |
download | skyhanni-5fd3bcd10cd41f016acb4658bc441fb21bf14e85.tar.gz skyhanni-5fd3bcd10cd41f016acb4658bc441fb21bf14e85.tar.bz2 skyhanni-5fd3bcd10cd41f016acb4658bc441fb21bf14e85.zip |
Changed the ashfang gravity orb highlight from square to cylinder
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt index f9ca75f59..c0dbe3108 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt @@ -3,13 +3,9 @@ package at.hannibal2.skyhanni.features.nether.ashfang import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.features.damageindicator.BossType import at.hannibal2.skyhanni.features.damageindicator.DamageIndicatorManager -import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled +import at.hannibal2.skyhanni.utils.* import at.hannibal2.skyhanni.utils.ItemUtils.getSkullTexture -import at.hannibal2.skyhanni.utils.LocationUtils -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.drawString -import at.hannibal2.skyhanni.utils.SpecialColour -import at.hannibal2.skyhanni.utils.getLorenzVec import net.minecraft.client.Minecraft import net.minecraft.entity.item.EntityArmorStand import net.minecraftforge.client.event.RenderWorldLastEvent @@ -39,15 +35,14 @@ class AshfangGravityOrbs { fun onRenderWorld(event: RenderWorldLastEvent) { if (!isEnabled()) return - val special = SkyHanniMod.feature.ashfang.gravityOrbsColor - - val color = Color(SpecialColour.specialToChromaRGB(special), true) - + val color = Color(SpecialColour.specialToChromaRGB(SkyHanniMod.feature.ashfang.gravityOrbsColor), true) val playerLocation = LocationUtils.playerLocation() for (orb in orbs) { if (orb.isDead) continue val orbLocation = orb.getLorenzVec() - event.drawWaypointFilled(orbLocation.add(-0.5, 1.25, -0.5), color, extraSize = 1.0) + val center = orbLocation.add(-0.5, -2.0, -0.5) + RenderUtils.drawCylinderInWorld(color, center.x, center.y, center.z, 3.5f, 4.5f, event.partialTicks) + if (orbLocation.distance(playerLocation) < 15) { //TODO find way to dynamically change color event.drawString(orbLocation.add(0.0, 2.5, 0.0), "§cGravity Orb") |