summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-08 12:18:03 +1000
committerGitHub <noreply@github.com>2024-06-08 12:18:03 +1000
commitaaca5f08d47732b3db5329a3a9404281b21d2f55 (patch)
tree6e9888c91928ba5e49e1d736b28fe0f4c847faa8 /src/main/java/at/hannibal2/skyhanni/features/misc
parent0c53ce8afdd5f64d2764d5ce0d4f2f2a59a7b06e (diff)
downloadskyhanni-aaca5f08d47732b3db5329a3a9404281b21d2f55.tar.gz
skyhanni-aaca5f08d47732b3db5329a3a9404281b21d2f55.tar.bz2
skyhanni-aaca5f08d47732b3db5329a3a9404281b21d2f55.zip
Backend: Add annotation to smaller modules (#2022)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
index d9df6321b..50148f031 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
@@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.features.misc
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.enums.OutsideSbFeature
import at.hannibal2.skyhanni.events.GuiRenderEvent
+import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.BlockUtils.getBlockAt
import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
@@ -14,21 +15,20 @@ import net.minecraft.init.Blocks
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.concurrent.fixedRateTimer
-class MovementSpeedDisplay {
+@SkyHanniModule
+object MovementSpeedDisplay {
private val config get() = SkyHanniMod.feature.misc
private var display = ""
private val soulsandSpeeds = mutableListOf<Double>()
- companion object {
- /**
- * This speed value represents the movement speed in blocks per second.
- * This has nothing to do with the speed stat.
- */
- var speed = 0.0
- var usingSoulsandSpeed = false
- }
+ /**
+ * This speed value represents the movement speed in blocks per second.
+ * This has nothing to do with the speed stat.
+ */
+ var speed = 0.0
+ var usingSoulsandSpeed = false
init {
// TODO use LorenzTickEvent