mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-28 07:55:59 +00:00
Crate Craftables Panel (#696)
This commit is contained in:
1 parent
860bc059ca
commit
31fcd6af51
23 files changed
+735
-363
No files matched your search
@@ -1,6 +1,8 @@
|
||||
package codechicken.nei.recipe;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import net.minecraft.client.gui.inventory.GuiBrewingStand;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
@@ -79,6 +81,12 @@ public class RecipeInfo {
|
||||
return overlayMap.get(new OverlayKey(gui.getClass(), ident));
|
||||
}
|
||||
|
||||
public static List<String> getOverlayHandlerIdents(GuiContainer gui) {
|
||||
final Class<? extends GuiContainer> classz = gui.getClass();
|
||||
return overlayMap.keySet().stream().filter(key -> key.ident != null && key.guiClass.equals(classz))
|
||||
.map(key -> key.ident).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static IStackPositioner getStackPositioner(GuiContainer gui, String ident) {
|
||||
return positionerMap.get(new OverlayKey(gui.getClass(), ident));
|
||||
}
|
||||
@@ -116,7 +124,5 @@ public class RecipeInfo {
|
||||
|
||||
API.registerRecipeHandler(new ProfilerRecipeHandler(true));
|
||||
API.registerUsageHandler(new ProfilerRecipeHandler(false));
|
||||
API.registerRecipeHandler(new ItemsHistoryHandler());
|
||||
API.registerUsageHandler(new ItemsHistoryHandler());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user