aboutsummaryrefslogtreecommitdiff
path: root/api/src/main/java/me
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-11-05 01:15:41 +0800
committershedaniel <daniel@shedaniel.me>2022-11-05 19:32:20 +0800
commit8ec269c48ac4576d7fcda9373c2e10afc599f303 (patch)
treeffc15c1c3d4f4a40aab5a72efa2492304ab051ca /api/src/main/java/me
parentef449b44e7124a199a460fbaa7fd73045a319b2a (diff)
downloadRoughlyEnoughItems-8ec269c48ac4576d7fcda9373c2e10afc599f303.tar.gz
RoughlyEnoughItems-8ec269c48ac4576d7fcda9373c2e10afc599f303.tar.bz2
RoughlyEnoughItems-8ec269c48ac4576d7fcda9373c2e10afc599f303.zip
Fix #1187
Diffstat (limited to 'api/src/main/java/me')
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java5
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/registry/category/CategoryRegistry.java16
2 files changed, 21 insertions, 0 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java b/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java
index c994980cd..a932071db 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java
@@ -28,6 +28,7 @@ import me.shedaniel.rei.api.client.REIRuntime;
import me.shedaniel.rei.api.client.config.entry.EntryStackProvider;
import me.shedaniel.rei.api.client.favorites.FavoriteEntry;
import me.shedaniel.rei.api.client.gui.config.*;
+import me.shedaniel.rei.api.common.category.CategoryIdentifier;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.resources.ResourceLocation;
@@ -35,6 +36,7 @@ import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import java.util.List;
+import java.util.Map;
@Environment(EnvType.CLIENT)
public interface ConfigObject {
@@ -311,6 +313,9 @@ public interface ConfigObject {
boolean shouldFilterDisplays();
@ApiStatus.Experimental
+ Map<CategoryIdentifier<?>, Boolean> getFilteringQuickCraftCategories();
+
+ @ApiStatus.Experimental
boolean shouldAsyncSearch();
@ApiStatus.Experimental
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/registry/category/CategoryRegistry.java b/api/src/main/java/me/shedaniel/rei/api/client/registry/category/CategoryRegistry.java
index f209cf11b..4bdcab8ac 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/registry/category/CategoryRegistry.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/registry/category/CategoryRegistry.java
@@ -270,6 +270,22 @@ public interface CategoryRegistry extends Reloadable<REIClientPlugin>, Iterable<
void setPlusButtonArea(ButtonArea area);
/**
+ * Returns whether the category is available for quick crafting by default.
+ *
+ * @return whether the category is available for quick crafting by default
+ */
+ @ApiStatus.Experimental
+ boolean isQuickCraftingEnabledByDefault();
+
+ /**
+ * Sets whether the category is available for quick crafting by default.
+ *
+ * @param enabled whether the category is available for quick crafting by default
+ */
+ @ApiStatus.Experimental
+ void setQuickCraftingEnabledByDefault(boolean enabled);
+
+ /**
* Returns the optional plus button area provider
*
* @return the optional plus button area provider