mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 12:42:10 +00:00
add more api (#352)
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user