|
4 | 4 | import gregtech.api.cover.CoverDefinition; |
5 | 5 | import gregtech.api.cover.CoverWithUI; |
6 | 6 | import gregtech.api.cover.CoverableView; |
7 | | -import gregtech.api.mui.GTGuis; |
8 | 7 | import gregtech.client.renderer.texture.Textures; |
9 | 8 |
|
10 | 9 | import net.minecraft.entity.player.EntityPlayer; |
|
22 | 21 | import codechicken.lib.render.pipeline.IVertexOperation; |
23 | 22 | import codechicken.lib.vec.Cuboid6; |
24 | 23 | import codechicken.lib.vec.Matrix4; |
25 | | -import com.cleanroommc.modularui.api.drawable.IKey; |
26 | 24 | import com.cleanroommc.modularui.api.widget.IWidget; |
27 | | -import com.cleanroommc.modularui.factory.SidedPosGuiData; |
28 | 25 | import com.cleanroommc.modularui.screen.ModularPanel; |
29 | 26 | import com.cleanroommc.modularui.value.sync.PanelSyncManager; |
30 | 27 | import com.cleanroommc.modularui.value.sync.SyncHandlers; |
| 28 | +import com.cleanroommc.modularui.widget.ParentWidget; |
31 | 29 | import com.cleanroommc.modularui.widgets.ItemSlot; |
32 | 30 | import com.cleanroommc.modularui.widgets.layout.Grid; |
33 | 31 | import org.jetbrains.annotations.ApiStatus; |
@@ -89,12 +87,12 @@ public boolean usesMui2() { |
89 | 87 | } |
90 | 88 |
|
91 | 89 | @Override |
92 | | - public int getHeight() { |
93 | | - return MAX_HEIGHT; |
| 90 | + public ModularPanel confgurePanel(ModularPanel panel, boolean isSmallGui) { |
| 91 | + return panel.height(MAX_HEIGHT); |
94 | 92 | } |
95 | 93 |
|
96 | 94 | @Override |
97 | | - public @Nullable IWidget createUI(ModularPanel mainPanel, PanelSyncManager manager) { |
| 95 | + public @Nullable ParentWidget<?> createUI(ModularPanel mainPanel, PanelSyncManager manager) { |
98 | 96 | manager.registerSlotGroup("item_inv", this.storageHandler.getSlots()); |
99 | 97 |
|
100 | 98 | int rowSize = this.storageHandler.getSlots(); |
|
0 commit comments