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

@@ -70,6 +70,10 @@ public class RecipeInfo {
return overlayMap.containsKey(new OverlayKey(gui.getClass(), ident));
}
public static boolean hasOverlayHandler(Class<? extends GuiContainer> classz, String ident) {
return overlayMap.containsKey(new OverlayKey(classz, ident));
}
public static IOverlayHandler getOverlayHandler(GuiContainer gui, String ident) {
return overlayMap.get(new OverlayKey(gui.getClass(), ident));
}