aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-16 10:17:03 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-16 10:17:03 +0200
commit41898a154567e77d16cfcae98fe49f66e287241c (patch)
tree167b5870aec9f21b82d3c9527ca94254e05235dd /src/main/java/at/hannibal2
parent4a8520f031048f5c41cbb5d9289465ede60d9715 (diff)
downloadskyhanni-41898a154567e77d16cfcae98fe49f66e287241c.tar.gz
skyhanni-41898a154567e77d16cfcae98fe49f66e287241c.tar.bz2
skyhanni-41898a154567e77d16cfcae98fe49f66e287241c.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java14
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt14
2 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java
index ab73f060d..824dd8c83 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java
@@ -2,7 +2,7 @@ package at.hannibal2.skyhanni.config.features.mining;
import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
-import at.hannibal2.skyhanni.features.mining.MineshaftPityDisplay.MineshaftPityLines;
+import at.hannibal2.skyhanni.features.mining.MineshaftPityDisplay.MineshaftPityLine;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
@@ -23,12 +23,12 @@ public class MineshaftPityDisplayConfig {
@Expose
@ConfigOption(name = "Stats List", desc = "Drag text to change the appearance of the display.")
@ConfigEditorDraggableList
- public List<MineshaftPityLines> mineshaftPityLines = new ArrayList<>(Arrays.asList(
- MineshaftPityLines.TITLE,
- MineshaftPityLines.COUNTER,
- MineshaftPityLines.CHANCE,
- MineshaftPityLines.NEEDED_TO_PITY,
- MineshaftPityLines.TIME_SINCE_MINESHAFT
+ public List<MineshaftPityLine> mineshaftPityLines = new ArrayList<>(Arrays.asList(
+ MineshaftPityLine.TITLE,
+ MineshaftPityLine.COUNTER,
+ MineshaftPityLine.CHANCE,
+ MineshaftPityLine.NEEDED_TO_PITY,
+ MineshaftPityLine.TIME_SINCE_MINESHAFT
));
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt
index 383ecc135..2df977737 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt
@@ -202,21 +202,21 @@ object MineshaftPityDisplay {
)
val map = buildMap {
- put(MineshaftPityLines.TITLE, Renderable.string("§9§lMineshaft Pity Counter"))
- put(MineshaftPityLines.COUNTER, Renderable.string("§3Pity Counter: §e$counterUntilPity§6/§e$MAX_COUNTER"))
+ put(MineshaftPityLine.TITLE, Renderable.string("§9§lMineshaft Pity Counter"))
+ put(MineshaftPityLine.COUNTER, Renderable.string("§3Pity Counter: §e$counterUntilPity§6/§e$MAX_COUNTER"))
put(
- MineshaftPityLines.CHANCE,
+ MineshaftPityLine.CHANCE,
Renderable.string(
"§3Chance: §e1§6/§e${chance.round(1).addSeparators()} §7(§b${((1.0 / chance) * 100).addSeparators()}%§7)",
),
)
- put(MineshaftPityLines.NEEDED_TO_PITY, neededToPityRenderable)
+ put(MineshaftPityLine.NEEDED_TO_PITY, neededToPityRenderable)
put(
- MineshaftPityLines.TIME_SINCE_MINESHAFT,
+ MineshaftPityLine.TIME_SINCE_MINESHAFT,
Renderable.string("§3Last Mineshaft: §e${lastMineshaftSpawn.passedSince().format()}"),
)
put(
- MineshaftPityLines.AVERAGE_BLOCKS_MINESHAFT,
+ MineshaftPityLine.AVERAGE_BLOCKS_MINESHAFT,
Renderable.string(
"§3Average Blocks/Mineshaft: §e${(mineshaftTotalBlocks / mineshaftTotalCount.toDouble()).addSeparators()}",
),
@@ -262,7 +262,7 @@ object MineshaftPityDisplay {
private fun isDisplayEnabled() = (MiningAPI.inGlacialTunnels() || MiningAPI.inDwarvenBaseCamp()) && config.enabled
- enum class MineshaftPityLines(private val display: String, val shouldDisplay: () -> Boolean = { true }) {
+ enum class MineshaftPityLine(private val display: String, val shouldDisplay: () -> Boolean = { true }) {
TITLE("§3§lMineshaft Pity Counter"),
COUNTER("§3Counter: §e561§6/§e2000"),
CHANCE("§3Chance: §e1§6/§e1439 §7(§b0.069%§7)"),