diff options
author | appable <enzospiacitelli@gmail.com> | 2024-05-28 23:47:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 08:47:36 +0200 |
commit | f6a31d6a3f6caf1ad3476f9019b8bd278d7e1c3d (patch) | |
tree | fdbba96ae6f3a67caa45bf88cabf826f910d4f82 /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | c8043a2c0b4dbd0733a316f2ed9b4f8c8d605056 (diff) | |
download | skyhanni-f6a31d6a3f6caf1ad3476f9019b8bd278d7e1c3d.tar.gz skyhanni-f6a31d6a3f6caf1ad3476f9019b8bd278d7e1c3d.tar.bz2 skyhanni-f6a31d6a3f6caf1ad3476f9019b8bd278d7e1c3d.zip |
Feature: Last farmed location waypoint (#1335)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/garden/CropStartLocationConfig.java | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/CropStartLocationConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/CropStartLocationConfig.java index dc81a0063..048ae4f89 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/CropStartLocationConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/CropStartLocationConfig.java @@ -3,14 +3,38 @@ package at.hannibal2.skyhanni.config.features.garden; import at.hannibal2.skyhanni.config.FeatureToggle; import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class CropStartLocationConfig { @Expose - @ConfigOption(name = "Enable", desc = "Show the start waypoint for the farm of your current tool in hand. Do §e/shcropstartlocation §7to change the waypoint again.") + @ConfigOption(name = "Enable", desc = "Show waypoints for the farm of your current tool in hand. ") @ConfigEditorBoolean @FeatureToggle public boolean enabled = false; + @Expose + @ConfigOption(name = "Crop Location Mode", desc = "Whether to show waypoint at start location (set with §e/shcropstartlocation §7) or last farmed location.") + @ConfigEditorDropdown + public CropLocationMode mode = CropLocationMode.START; + + public enum CropLocationMode { + START("Start Only"), + LAST_FARMED("Last Farmed Only"), + BOTH("Both"), + ; + + private final String str; + + CropLocationMode(String str) { + this.str = str; + } + + @Override + public String toString() { + return str; + } + } + } |