OSDN Git Service

GUIのSlot追加
[chemicraft/chemicraft.git] / common / chemicraft / ContainerChemicalCraftingTable.java
index f034a64..b7f689c 100644 (file)
@@ -88,16 +88,18 @@ public class ContainerChemicalCraftingTable extends Container {
 
 
 
-       private void generateSlots(String activeTabs, IInventory inventory){
+       private void generateSlots(String activeTabs, IInventory[] inventorys){
                if(activeTabs.equals("Decomposition")){
                        int count = 0;
                        for(int i = 0;i < 4;i++){
                                for(int j = 0;j < 4;j++){
-                                       this.addSlotToContainer(new Slot(inventory, count, 90 + 18 * j, 8 + 18 * i));
+                                       this.addSlotToContainer(new SlotDecompositionResult(inventorys[0], count, 90 + 18 * j, 8 + 18 * i));
                                        count++;
                                }
                        }
-                       this.addSlotToContainer(new Slot(inventory, count, 25 + 4, 26 + 4));
+                       this.addSlotToContainer(new Slot(inventorys[0], count, 25 + 4, 26 + 4));
+               }else if(activeTabs.equals("ChemicalCombination")){
+
                }else{
                        return;
                }