aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-04-23 23:57:56 +0200
committerGitHub <noreply@github.com>2024-04-23 23:57:56 +0200
commit85b62f0192cc17c04dd2b7d2c5a3924393a68db0 (patch)
treef165dd1ef570ce4088867006bda176a6651a17cc /src/main/java/at/hannibal2/skyhanni/config/features
parent26401e603dc2b966c8449f2db5679250921a6ba5 (diff)
downloadskyhanni-85b62f0192cc17c04dd2b7d2c5a3924393a68db0.tar.gz
skyhanni-85b62f0192cc17c04dd2b7d2c5a3924393a68db0.tar.bz2
skyhanni-85b62f0192cc17c04dd2b7d2c5a3924393a68db0.zip
Feature: Hide Far Entities (#1064)
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java30
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java5
2 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java
new file mode 100644
index 000000000..2ac5ad4ed
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java
@@ -0,0 +1,30 @@
+package at.hannibal2.skyhanni.config.features.misc;
+
+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.ConfigEditorSlider;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+public class HideFarEntitiesConfig {
+ @Expose
+ @ConfigOption(name = "Enabled", desc = "Hide all entities from rendering except the nearest ones.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = false;
+
+ @Expose
+ @ConfigOption(name = "Min Distance", desc = "Always shows mobs that are at least that close to the player.")
+ @ConfigEditorSlider(minValue = 3, maxValue = 30, minStep = 1)
+ public int minDistance = 10;
+
+ @Expose
+ @ConfigOption(name = "Max Amount", desc = "Not showing more than this amount of nearest entities.")
+ @ConfigEditorSlider(minValue = 1, maxValue = 150, minStep = 1)
+ public int maxAmount = 30;
+
+ @Expose
+ @ConfigOption(name = "Exclude Garden", desc = "Disable this feature while in the Garden.")
+ @ConfigEditorBoolean
+ public boolean excludeGarden = false;
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
index d1fa39a86..a49dc2607 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
@@ -251,4 +251,9 @@ public class MiscConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean fixGhostEntities = true;
+
+ @ConfigOption(name = "Hide Far Entities", desc = "")
+ @Accordion
+ @Expose
+ public HideFarEntitiesConfig hideFarEntities = new HideFarEntitiesConfig();
}