Developed and implemented the foundation for Item/Gas/Energy/Fluid/Heat dynamic side configuration.

As of now, only items are supported, and the actual config GUI has not been changed. Only gameplay difference is three new configurator modes.
This commit is contained in:
Aidan C. Brady committed 2015-03-07 19:09:23 -05:00
1 parent 35518ad01f
commit d4d7e88c4e
41 files changed
+563 -453

No files matched your search

@@ -1,28 +1,40 @@
package mekanism.api.transmitters;
import mekanism.api.gas.IGasTransmitter;
import mekanism.common.util.MekanismUtils;
import net.minecraft.tileentity.TileEntity;
public enum TransmissionType
{
ENERGY("EnergyNetwork"),
FLUID("FluidNetwork"),
GAS("GasNetwork"),
ITEM("InventoryNetwork"),
HEAT("HeatNetwork");
ENERGY("EnergyNetwork", "Energy"),
FLUID("FluidNetwork", "Fluids"),
GAS("GasNetwork", "Gases"),
ITEM("InventoryNetwork", "Items"),
HEAT("HeatNetwork", "Heat");
private String name;
private String transmission;
private TransmissionType(String n)
private TransmissionType(String n, String t)
{
name = n;
transmission = t;
}
public String getName()
{
return name;
}
public String getTransmission()
{
return transmission;
}
public String localize()
{
return MekanismUtils.localize("transmission." + getTransmission());
}
public static boolean checkTransmissionType(TileEntity sideTile, TransmissionType type)
{