aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-02-13 22:13:13 +0800
committershedaniel <daniel@shedaniel.me>2021-02-15 17:40:44 +0800
commit1a481524ccf4bee04664bae421cd2ef9ef41f5b9 (patch)
tree61d0da52c6b11ad09d3f716df4cfb2604d4429f4 /runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
parente41d9d568a7cacee068b069af739def36b0271aa (diff)
downloadRoughlyEnoughItems-1a481524ccf4bee04664bae421cd2ef9ef41f5b9.tar.gz
RoughlyEnoughItems-1a481524ccf4bee04664bae421cd2ef9ef41f5b9.tar.bz2
RoughlyEnoughItems-1a481524ccf4bee04664bae421cd2ef9ef41f5b9.zip
Update Cloth Config & Migrate to Architectury Loom
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
index fdfef10c9..41962a690 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
@@ -24,10 +24,10 @@
package me.shedaniel.rei.impl;
import com.mojang.blaze3d.platform.InputConstants;
-import me.sargunvohra.mcmods.autoconfig1u.ConfigData;
-import me.sargunvohra.mcmods.autoconfig1u.annotation.Config;
-import me.sargunvohra.mcmods.autoconfig1u.annotation.ConfigEntry;
-import me.sargunvohra.mcmods.autoconfig1u.shadowed.blue.endless.jankson.Comment;
+import me.shedaniel.autoconfig.ConfigData;
+import me.shedaniel.autoconfig.annotation.Config;
+import me.shedaniel.autoconfig.annotation.ConfigEntry;
+import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment;
import me.shedaniel.clothconfig2.api.Modifier;
import me.shedaniel.clothconfig2.api.ModifierKeyCode;
import me.shedaniel.rei.api.ConfigObject;
@@ -337,13 +337,13 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData {
@ApiStatus.Experimental
@Override
public double getHorizontalEntriesBoundaries() {
- return Mth.clamp(appearance.horizontalEntriesBoundaries, 0.1,1);
+ return Mth.clamp(appearance.horizontalEntriesBoundaries, 0.1, 1);
}
@ApiStatus.Experimental
@Override
public double getVerticalEntriesBoundaries() {
- return Mth.clamp(appearance.verticalEntriesBoundaries, 0.1,1);
+ return Mth.clamp(appearance.verticalEntriesBoundaries, 0.1, 1);
}
@Override
@@ -419,7 +419,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData {
@Comment("Declares whether the craftable filter button is enabled.") private boolean enableCraftableOnlyButton = false;
@Comment("Declares whether the utils buttons are shown.") private boolean showUtilsButtons = false;
}
-
+
@UsePercentage(min = 0.1, max = 1.0, prefix = "Limit: ") private double horizontalEntriesBoundaries = 1.0;
@UsePercentage(min = 0.1, max = 1.0, prefix = "Limit: ") private double verticalEntriesBoundaries = 1.0;
@UseSpecialSearchFilterSyntaxHighlightingScreen private SyntaxHighlightingMode syntaxHighlightingMode = SyntaxHighlightingMode.COLORFUL;