diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-10-26 10:49:27 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-10-29 14:02:27 +0800 |
| commit | 9ea4a22e9a194fd8fdc2fb03226ab38ee175a6cc (patch) | |
| tree | b4db2569bc4a90d7bb835ff451fe5e11e86e8968 /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | |
| parent | b7f8fc61dcaa6d202809651d46cf0946b63beef7 (diff) | |
| download | RoughlyEnoughItems-9ea4a22e9a194fd8fdc2fb03226ab38ee175a6cc.tar.gz RoughlyEnoughItems-9ea4a22e9a194fd8fdc2fb03226ab38ee175a6cc.tar.bz2 RoughlyEnoughItems-9ea4a22e9a194fd8fdc2fb03226ab38ee175a6cc.zip | |
Favorites Dragging
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java index ba9b7701e..cc59a0559 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java @@ -32,6 +32,7 @@ import me.shedaniel.clothconfig2.api.Modifier; import me.shedaniel.clothconfig2.api.ModifierKeyCode; import me.shedaniel.rei.api.ConfigObject; import me.shedaniel.rei.api.EntryStack; +import me.shedaniel.rei.api.favorites.FavoriteEntry; import me.shedaniel.rei.gui.config.*; import me.shedaniel.rei.impl.filtering.FilteringRule; import net.fabricmc.api.EnvType; @@ -100,6 +101,11 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { } @Override + public boolean isReducedMotion() { + return basics.reducedMotion; + } + + @Override public boolean isToastDisplayedOnCopyIdentifier() { return advanced.accessibility.toastDisplayedOnCopyIdentifier; } @@ -230,11 +236,6 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { } @Override - public boolean doSearchFavorites() { - return advanced.search.searchFavorites; - } - - @Override public ModifierKeyCode getFavoriteKeyCode() { return basics.keyBindings.favoriteKeybind == null ? ModifierKeyCode.unknown() : basics.keyBindings.favoriteKeybind; } @@ -295,7 +296,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { } @Override - public List<EntryStack> getFavorites() { + public List<FavoriteEntry> getFavoriteEntries() { return basics.favorites; } @@ -363,7 +364,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { } public static class Basics { - @ConfigEntry.Gui.Excluded public List<EntryStack> favorites = new ArrayList<>(); + @ConfigEntry.Gui.Excluded public List<FavoriteEntry> favorites = new ArrayList<>(); @Comment("Declares whether cheating mode is on.") private boolean cheating = false; private boolean favoritesEnabled = true; @ConfigEntry.Gui.CollapsibleObject(startExpanded = true) @@ -371,6 +372,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { @Comment("Declares whether REI is visible.") @ConfigEntry.Gui.Excluded private boolean overlayVisible = true; @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) private ItemCheatingStyle cheatingStyle = ItemCheatingStyle.GRAB; + private boolean reducedMotion = false; } public static class KeyBindings { @@ -453,7 +455,6 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { } public static class Search { - @Comment("Declares whether favorites will be searched.") private boolean searchFavorites = false; @Comment("Declares whether search time should be debugged.") private boolean debugSearchTimeRequired = false; @Comment("Declares whether REI should search async.") private boolean asyncSearch = true; @Comment("Declares how many entries should be grouped one async search.") @ConfigEntry.BoundedDiscrete(min = 25, max = 400) |
