OSDN Git Service

GUIのSlot追加
[chemicraft/chemicraft.git] / common / chemicraft / TileEntityChemicalCraftingTable.java
index a2a1c30..cf8fa02 100644 (file)
@@ -1,6 +1,7 @@
 package chemicraft;
 
 import java.io.DataOutputStream;
+import java.util.ArrayList;
 
 import net.minecraft.src.IInventory;
 import net.minecraft.src.ItemStack;
@@ -8,8 +9,6 @@ import net.minecraft.src.NBTTagCompound;
 import net.minecraft.src.NBTTagList;
 import net.minecraft.src.Packet;
 import net.minecraft.src.TileEntity;
-import net.minecraft.src.WorldClient;
-import net.minecraft.src.WorldServer;
 
 import com.google.common.io.ByteArrayDataInput;
 
@@ -93,9 +92,11 @@ public class TileEntityChemicalCraftingTable extends TileEntity {
        }
 
 
-       public IInventory getActiveInventory(){
+       public IInventory[] getActiveInventory(){
+               ArrayList<IInventory> inventorys = new ArrayList<IInventory>();
                if(this.activeTab.equals("Decomposition")){
-                       return this.decompositionInv;
+                       inventorys.add(this.decompositionInv);
+                       return inventorys.toArray(new IInventory[1]);
                }else{
                        return null;
                }