diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-11-05 01:15:41 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2023-05-29 21:19:00 +0800 |
| commit | 8626c1a09f939913cb397520cf2c69c281cabe20 (patch) | |
| tree | 97997c9c0102348b9cb9cfc6ed2302518b161a64 /api/src/main/java | |
| parent | bca8c6dfa773a549e8e110f88dff37689baebf30 (diff) | |
| download | RoughlyEnoughItems-8626c1a09f939913cb397520cf2c69c281cabe20.tar.gz RoughlyEnoughItems-8626c1a09f939913cb397520cf2c69c281cabe20.tar.bz2 RoughlyEnoughItems-8626c1a09f939913cb397520cf2c69c281cabe20.zip | |
Fix #1187
Diffstat (limited to 'api/src/main/java')
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java | 5 | ||||
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/client/registry/category/CategoryRegistry.java | 16 |
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 c1230a616..483e59a3a 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 @@ -29,6 +29,7 @@ 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.entry.EntryStack; +import me.shedaniel.rei.api.common.category.CategoryIdentifier; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.resources.ResourceLocation; @@ -36,6 +37,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 { @@ -314,6 +316,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 6cd5a368f..2a5f9e593 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 @@ -272,6 +272,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 |
