From 1f6137d24153b62c42da129ce5d6373bbf78ee34 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Mon, 14 Dec 2020 00:10:26 +0800 Subject: The big refactor Signed-off-by: shedaniel --- .../java/me/shedaniel/rei/api/ClientHelper.java | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/ClientHelper.java') 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 ddb17e63f..36b61033a 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 @@ -35,7 +35,6 @@ import net.minecraft.network.chat.Component; import net.minecraft.network.chat.TextComponent; 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.NotNull; import org.jetbrains.annotations.Nullable; @@ -76,11 +75,7 @@ public interface ClientHelper { * @param stack the stack to cheat in * @return whether it failed */ - boolean tryCheatingEntry(EntryStack stack); - - default boolean tryCheatingStack(ItemStack stack) { - return tryCheatingEntry(EntryStack.create(stack)); - } + boolean tryCheatingEntry(EntryStack stack); /** * Gets the mod from an item @@ -190,13 +185,13 @@ public interface ClientHelper { @NotNull Set getCategories(); - ViewSearchBuilder addRecipesFor(EntryStack stack); + ViewSearchBuilder addRecipesFor(EntryStack stack); - @NotNull List getRecipesFor(); + @NotNull List> getRecipesFor(); - ViewSearchBuilder addUsagesFor(EntryStack stack); + ViewSearchBuilder addUsagesFor(EntryStack stack); - @NotNull List getUsagesFor(); + @NotNull List> getUsagesFor(); ViewSearchBuilder setPreferredOpenedCategory(@Nullable ResourceLocation category); @@ -205,15 +200,15 @@ public interface ClientHelper { ViewSearchBuilder fillPreferredOpenedCategory(); - ViewSearchBuilder setInputNotice(@Nullable EntryStack stack); + ViewSearchBuilder setInputNotice(@Nullable EntryStack stack); @Nullable - EntryStack getInputNotice(); + EntryStack getInputNotice(); - ViewSearchBuilder setOutputNotice(@Nullable EntryStack stack); + ViewSearchBuilder setOutputNotice(@Nullable EntryStack stack); @Nullable - EntryStack getOutputNotice(); + EntryStack getOutputNotice(); @NotNull Map, List> buildMap(); -- cgit