|
1 | 1 | package com.glodblock.github.coremod.hooker; |
2 | 2 |
|
| 3 | +import appeng.api.networking.IGrid; |
| 4 | +import appeng.api.networking.IGridHost; |
3 | 5 | import appeng.api.networking.IGridNode; |
4 | 6 | import appeng.api.networking.IMachineSet; |
5 | 7 | import appeng.api.storage.data.IAEItemStack; |
6 | 8 | import appeng.me.MachineSet; |
| 9 | +import appeng.parts.misc.PartInterface; |
7 | 10 | import appeng.tile.misc.TileInterface; |
8 | 11 | import appeng.util.InventoryAdaptor; |
9 | 12 | import com.glodblock.github.common.item.ItemFluidDrop; |
10 | 13 | import com.glodblock.github.common.item.ItemFluidPacket; |
| 14 | +import com.glodblock.github.common.parts.PartFluidInterface; |
| 15 | +import com.glodblock.github.common.tile.TileFluidInterface; |
11 | 16 | import com.glodblock.github.inventory.FluidConvertingInventoryAdaptor; |
12 | 17 | import com.glodblock.github.inventory.FluidConvertingInventoryCrafting; |
13 | 18 | import com.glodblock.github.loader.ItemAndBlockHolder; |
@@ -58,15 +63,15 @@ public static IAEItemStack[] flattenFluidPackets(IAEItemStack[] stacks) { |
58 | 63 | return stacks; |
59 | 64 | } |
60 | 65 |
|
61 | | - /*public static IMachineSet getMachines(IGrid grid, Class<? extends IGridHost> c) { |
| 66 | + public static IMachineSet getMachines(IGrid grid, Class<? extends IGridHost> c) { |
62 | 67 | if (c == TileInterface.class) { |
63 | | - return unionMachineSets(grid.getMachines(c), grid.getMachines(TileDualInterface.class)); |
| 68 | + return unionMachineSets(grid.getMachines(c), grid.getMachines(TileFluidInterface.class)); |
64 | 69 | } else if (c == PartInterface.class) { |
65 | | - return unionMachineSets(grid.getMachines(c), grid.getMachines(PartDualInterface.class)); |
| 70 | + return unionMachineSets(grid.getMachines(c), grid.getMachines(PartFluidInterface.class)); |
66 | 71 | } else { |
67 | 72 | return grid.getMachines(c); |
68 | 73 | } |
69 | | - }*/ //unfinished |
| 74 | + } |
70 | 75 |
|
71 | 76 | private static IMachineSet unionMachineSets(IMachineSet a, IMachineSet b) { |
72 | 77 | if (a.isEmpty()) { |
|
0 commit comments