add more api (#352)

This commit is contained in:
asdflj authored and GitHub committed 2023-02-15 11:55:16 +01:00
1 parent 8ecc8f20d5
commit 4b247d08a5
2 files changed
+12

No files matched your search

@@ -107,6 +107,14 @@ public class API {
RecipeInfo.registerOverlayHandler(classz, handler, ident);
}
/**
* @param classz The class of your gui
* @param ident The recipe identification string
*/
public static boolean hasGuiOverlayHandler(Class<? extends GuiContainer> classz, String ident) {
return RecipeInfo.hasOverlayHandler(classz, ident);
}
/**
* Set the offset to be added to items to translate them into recipe coords on the actual gui, default is 5, 11.
* Primarily RecipeTransferRects