Use String key for RecipeCatalyst instead of IRecipeHandler.class (#197)

* Use String key for RecipeCatalyst instead of IRecipeHandler.class

* deprecate old methods

* delete commented out code
This commit is contained in:
miozune authored and GitHub committed 2022-01-22 23:37:54 +01:00
1 parent caebccc1fd
commit c73edaa72e
7 files changed
+91 -25

No files matched your search

@@ -89,6 +89,15 @@ public interface IRecipeHandler
* @return An instance of {@link IOverlayHandler} to be used for rendering the overlay of this specific recipe.
*/
public IOverlayHandler getOverlayHandler(GuiContainer gui, int recipe);
/**
* Simply works with the {@link codechicken.nei.api.DefaultOverlayRenderer}
* If the current container has been registered with this identifier, the question mark appears and an overlay guide can be drawn.
*
* @return The overlay identifier of this recipe type.
*/
public default String getOverlayIdentifier() {
return null;
}
/**
*
* @return The number of recipes that can fit on a page in the viewer (1 or 2)