diff --git a/src/main/java/mekanism/common/teleportation/SharedInventory.java b/src/main/java/mekanism/common/teleportation/SharedInventory.java new file mode 100644 index 000000000..389fd5314 --- /dev/null +++ b/src/main/java/mekanism/common/teleportation/SharedInventory.java @@ -0,0 +1,26 @@ +package mekanism.common.teleportation; + +import mekanism.api.gas.GasTank; + +import net.minecraft.item.ItemStack; +import net.minecraftforge.fluids.FluidTank; + +public class SharedInventory +{ + public String name; + + public double storedEnergy; + public FluidTank storedFluid; + public GasTank storedGas; + public ItemStack storedItem; + + public SharedInventory(String freq) + { + name = freq; + + storedEnergy = 0; + storedFluid = new FluidTank(1000); + storedGas = new GasTank(1000); + storedItem = null; + } +} diff --git a/src/main/java/mekanism/common/teleportation/SharedInventoryManager.java b/src/main/java/mekanism/common/teleportation/SharedInventoryManager.java new file mode 100644 index 000000000..99c7c209f --- /dev/null +++ b/src/main/java/mekanism/common/teleportation/SharedInventoryManager.java @@ -0,0 +1,27 @@ +package mekanism.common.teleportation; + +import java.util.HashMap; + +public class SharedInventoryManager +{ + public static HashMap inventories = new HashMap(); + + public static SharedInventory getInventory(String frequency) + { + if(frequency.length() <= 0) + { + return null; + } + + SharedInventory inv = inventories.get(frequency); + + if(inv == null) + { + inv = new SharedInventory(frequency); + + inventories.put(frequency, inv); + } + + return inv; + } +} diff --git a/src/main/java/mekanism/common/tile/TileEntityEntangledInventory.java b/src/main/java/mekanism/common/tile/TileEntityEntangledInventory.java new file mode 100644 index 000000000..d0b272986 --- /dev/null +++ b/src/main/java/mekanism/common/tile/TileEntityEntangledInventory.java @@ -0,0 +1,9 @@ +package mekanism.common.tile; + +public class TileEntityEntangledInventory extends TileEntityElectricBlock +{ + public TileEntityEntangledInventory() + { + super("Entangled", 0); + } +}