From 6104964f60bac00a4ac1359bd244d361e50786bd Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 27 Aug 2020 19:36:00 +0800 Subject: Migrate from yarn to mojmap Signed-off-by: shedaniel --- .../java/me/shedaniel/rei/api/RecipeHelper.java | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java') diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java index b199c7e8f..79bff2d4c 100644 --- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -27,11 +27,11 @@ import me.shedaniel.math.Rectangle; import me.shedaniel.rei.impl.Internals; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; -import net.minecraft.client.gui.screen.Screen; -import net.minecraft.client.gui.screen.ingame.ContainerScreen; -import net.minecraft.recipe.Recipe; -import net.minecraft.recipe.RecipeManager; -import net.minecraft.util.Identifier; +import net.minecraft.client.gui.screens.Screen; +import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen; +import net.minecraft.resources.ResourceLocation; +import net.minecraft.world.item.crafting.Recipe; +import net.minecraft.world.item.crafting.RecipeManager; import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -108,7 +108,7 @@ public interface RecipeHelper { * @param category the category * @param workingStations the working stations */ - void registerWorkingStations(Identifier category, List... workingStations); + void registerWorkingStations(ResourceLocation category, List... workingStations); /** * Registers the working stations of a category @@ -116,9 +116,9 @@ public interface RecipeHelper { * @param category the category * @param workingStations the working stations */ - void registerWorkingStations(Identifier category, EntryStack... workingStations); + void registerWorkingStations(ResourceLocation category, EntryStack... workingStations); - List> getWorkingStations(Identifier category); + List> getWorkingStations(ResourceLocation category); /** * Registers a recipe display. @@ -136,7 +136,7 @@ public interface RecipeHelper { */ @ApiStatus.ScheduledForRemoval @Deprecated - default void registerDisplay(Identifier categoryIdentifier, RecipeDisplay display) { + default void registerDisplay(ResourceLocation categoryIdentifier, RecipeDisplay display) { registerDisplay(display); } @@ -150,7 +150,7 @@ public interface RecipeHelper { */ Map, List> getRecipesFor(EntryStack stack); - RecipeCategory getCategory(Identifier identifier); + RecipeCategory getCategory(ResourceLocation identifier); /** * Gets the vanilla recipe manager @@ -188,14 +188,14 @@ public interface RecipeHelper { * @param category the category of the button area * @param rectangle the button area */ - void registerAutoCraftButtonArea(Identifier category, ButtonAreaSupplier rectangle); + void registerAutoCraftButtonArea(ResourceLocation category, ButtonAreaSupplier rectangle); /** * Removes the auto crafting button * * @param category the category of the button */ - default void removeAutoCraftButton(Identifier category) { + default void removeAutoCraftButton(ResourceLocation category) { registerAutoCraftButtonArea(category, bounds -> null); } @@ -241,7 +241,7 @@ public interface RecipeHelper { */ boolean isDisplayVisible(RecipeDisplay display); - > void registerRecipes(Identifier category, Predicate recipeFilter, Function mappingFunction); + > void registerRecipes(ResourceLocation category, Predicate recipeFilter, Function mappingFunction); /** * Registers a live recipe generator. @@ -251,11 +251,11 @@ public interface RecipeHelper { */ void registerLiveRecipeGenerator(LiveRecipeGenerator liveRecipeGenerator); - void registerScreenClickArea(Rectangle rectangle, Class> screenClass, Identifier... categories); + void registerScreenClickArea(Rectangle rectangle, Class> screenClass, ResourceLocation... categories); - > void registerRecipes(Identifier category, Class recipeClass, Function mappingFunction); + > void registerRecipes(ResourceLocation category, Class recipeClass, Function mappingFunction); - > void registerRecipes(Identifier category, Function recipeFilter, Function mappingFunction); + > void registerRecipes(ResourceLocation category, Function recipeFilter, Function mappingFunction); List getScreenClickAreas(); @@ -263,11 +263,11 @@ public interface RecipeHelper { boolean arePluginsLoading(); interface ScreenClickArea { - Class getScreenClass(); + Class getScreenClass(); Rectangle getRectangle(); - Identifier[] getCategories(); + ResourceLocation[] getCategories(); } } -- cgit