mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-20 03:59:49 +00:00
Move JEI items out of the way of GuiMultiModule modules
This commit is contained in:
1 parent
eeccb45b16
commit
e2e08b93d8
5 files changed
+71
-1
No files matched your search
@@ -14,8 +14,10 @@ import net.minecraftforge.fml.common.Optional;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@@ -57,6 +59,14 @@ public class GuiMultiModule extends GuiContainer { //implements INEIGuiHandler {
|
||||
modules.add(module);
|
||||
}
|
||||
|
||||
public List<Rectangle> getModuleAreas() {
|
||||
List<Rectangle> areas = new ArrayList<>(modules.size());
|
||||
for (GuiModule module : modules) {
|
||||
areas.add(module.getArea());
|
||||
}
|
||||
return areas;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
if(realWidth > -1) {
|
||||
|
||||
Reference in new issue
Block a user