mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
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:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user