aboutsummaryrefslogtreecommitdiff
path: root/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-12-11 20:24:47 +0800
committershedaniel <daniel@shedaniel.me>2020-12-11 20:24:47 +0800
commit90b8a8181eb7e642fb88832f8bd8baa3acdcf804 (patch)
tree85774b5a26be6a8303f99c5316aee320a737ffc8 /RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java
parent14edd7e3f9e3716ff60e9d918760049c1313a485 (diff)
downloadRoughlyEnoughItems-90b8a8181eb7e642fb88832f8bd8baa3acdcf804.tar.gz
RoughlyEnoughItems-90b8a8181eb7e642fb88832f8bd8baa3acdcf804.tar.bz2
RoughlyEnoughItems-90b8a8181eb7e642fb88832f8bd8baa3acdcf804.zip
Remove deprecated classes
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java')
-rw-r--r--RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java80
1 files changed, 2 insertions, 78 deletions
diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java
index 797e44ecb..ddb17e63f 100644
--- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java
+++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java
@@ -37,7 +37,6 @@ import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
-import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -71,22 +70,6 @@ public interface ClientHelper {
*/
void setCheating(boolean cheating);
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- List<ItemStack> getInventoryItemsTypes();
-
- /**
- * Opens a recipe viewing screen:
- * Opens {@link me.shedaniel.rei.gui.PreRecipeViewingScreen} if not set
- * Opens {@link me.shedaniel.rei.gui.RecipeViewingScreen} if set to default
- * Opens {@link me.shedaniel.rei.gui.VillagerRecipeViewingScreen} if set to villager
- *
- * @param map the map of recipes
- */
- @ApiStatus.ScheduledForRemoval
- @Deprecated
- void openRecipeViewingScreen(Map<RecipeCategory<?>, List<RecipeDisplay>> map);
-
/**
* Tries to cheat stack using either packets or commands.
*
@@ -100,42 +83,6 @@ public interface ClientHelper {
}
/**
- * Finds recipe for the stack and opens the recipe screen.
- *
- * @param stack the stack to find recipe for
- * @return whether the stack has any recipes to show
- */
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeRecipeKeyBind(EntryStack stack) {
- return openView(ViewSearchBuilder.builder().addRecipesFor(stack).setOutputNotice(stack).fillPreferredOpenedCategory());
- }
-
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeRecipeKeyBind(ItemStack stack) {
- return executeRecipeKeyBind(EntryStack.create(stack));
- }
-
- /**
- * Finds usage for the stack and opens the recipe screen.
- *
- * @param stack the stack to find usage for
- * @return whether the stack has any usages to show
- */
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeUsageKeyBind(EntryStack stack) {
- return openView(ViewSearchBuilder.builder().addUsagesFor(stack).setInputNotice(stack).fillPreferredOpenedCategory());
- }
-
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeUsageKeyBind(ItemStack stack) {
- return executeUsageKeyBind(EntryStack.create(stack));
- }
-
- /**
* Gets the mod from an item
*
* @param item the item to find
@@ -219,33 +166,10 @@ public interface ClientHelper {
/**
* Gets the mod from a modid
*
- * @param modid the modid of the mod
+ * @param modId the modid of the mod
* @return the mod name
*/
- String getModFromModId(String modid);
-
- /**
- * Finds all recipes and open them in a recipe screen.
- *
- * @return whether there are any recipes to show
- */
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeViewAllRecipesKeyBind() {
- return openView(ViewSearchBuilder.builder().addAllCategories().fillPreferredOpenedCategory());
- }
-
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeViewAllRecipesFromCategory(ResourceLocation category) {
- return openView(ViewSearchBuilder.builder().addCategory(category).fillPreferredOpenedCategory());
- }
-
- @Deprecated
- @ApiStatus.ScheduledForRemoval
- default boolean executeViewAllRecipesFromCategories(List<ResourceLocation> categories) {
- return openView(ViewSearchBuilder.builder().addCategories(categories).fillPreferredOpenedCategory());
- }
+ String getModFromModId(String modId);
boolean openView(ViewSearchBuilder builder);