aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-01-18 20:00:47 +0100
committerLinnea Gräf <nea@nea.moe>2024-01-18 20:00:47 +0100
commit608fec9cd0bbe3cf389faaeb7e258b592e3adf14 (patch)
treeef7996342498f64529ac6eb5851b2a61a1973d1c /src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt
parentd7902e06cd7285c72cd4ea2be6f18ead56a8775e (diff)
downloadfirmament-608fec9cd0bbe3cf389faaeb7e258b592e3adf14.tar.gz
firmament-608fec9cd0bbe3cf389faaeb7e258b592e3adf14.tar.bz2
firmament-608fec9cd0bbe3cf389faaeb7e258b592e3adf14.zip
Add Nearby Burrow Highlighter
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt b/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt
index eb20852..6422f67 100644
--- a/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt
@@ -6,26 +6,41 @@
package moe.nea.firmament.features.diana
+import moe.nea.firmament.events.AttackBlockEvent
import moe.nea.firmament.events.ParticleSpawnEvent
+import moe.nea.firmament.events.ProcessChatEvent
import moe.nea.firmament.events.SoundReceiveEvent
+import moe.nea.firmament.events.UseBlockEvent
+import moe.nea.firmament.events.WorldReadyEvent
import moe.nea.firmament.events.WorldRenderLastEvent
import moe.nea.firmament.features.FirmamentFeature
import moe.nea.firmament.gui.config.ManagedConfig
object DianaWaypoints : FirmamentFeature {
- override val identifier: String
- get() = "diana-waypoints"
- override val config: ManagedConfig?
- get() = TConfig
+ override val identifier get() = "diana-waypoints"
+ override val config get() = TConfig
object TConfig : ManagedConfig(identifier) {
val ancestralSpadeSolver by toggle("ancestral-spade") { false }
}
override fun onLoad() {
+ ParticleSpawnEvent.subscribe(NearbyBurrowsSolver::onParticles)
+ WorldReadyEvent.subscribe(NearbyBurrowsSolver::onSwapWorld)
+ WorldRenderLastEvent.subscribe(NearbyBurrowsSolver::onRender)
+ UseBlockEvent.subscribe {
+ NearbyBurrowsSolver.onBlockClick(it.hitResult.blockPos)
+ }
+ AttackBlockEvent.subscribe {
+ NearbyBurrowsSolver.onBlockClick(it.blockPos)
+ }
+ ProcessChatEvent.subscribe(NearbyBurrowsSolver::onChatEvent)
+
+
ParticleSpawnEvent.subscribe(AncestralSpadeSolver::onParticleSpawn)
SoundReceiveEvent.subscribe(AncestralSpadeSolver::onPlaySound)
WorldRenderLastEvent.subscribe(AncestralSpadeSolver::onWorldRender)
+ WorldReadyEvent.subscribe(AncestralSpadeSolver::onSwapWorld)
}
}