mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 12:09:45 +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,12 +1,15 @@
|
||||
package mekanism.client.render;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.api.gas.Gas;
|
||||
import mekanism.api.gas.GasRegistry;
|
||||
import mekanism.api.gas.OreGas;
|
||||
import mekanism.api.transmitters.TransmissionType;
|
||||
import mekanism.client.render.tileentity.RenderConfigurableMachine;
|
||||
import mekanism.client.render.tileentity.RenderDynamicTank;
|
||||
import mekanism.client.render.tileentity.RenderPortableTank;
|
||||
@@ -52,6 +55,8 @@ public class MekanismRenderer
|
||||
public static IIcon energyIcon;
|
||||
public static IIcon heatIcon;
|
||||
|
||||
public static Map<TransmissionType, IIcon> overlays = new HashMap<TransmissionType, IIcon>();
|
||||
|
||||
private static float lightmapLastX;
|
||||
private static float lightmapLastY;
|
||||
private static boolean optifineBreak = false;
|
||||
@@ -73,6 +78,11 @@ public class MekanismRenderer
|
||||
colors[color.ordinal()] = event.map.registerIcon("mekanism:overlay/overlay_" + color.unlocalizedName);
|
||||
}
|
||||
|
||||
for(TransmissionType type : TransmissionType.values())
|
||||
{
|
||||
overlays.put(type, event.map.registerIcon("mekanism:overlay/" + type.getTransmission() + "Overlay"));
|
||||
}
|
||||
|
||||
energyIcon = event.map.registerIcon("mekanism:LiquidEnergy");
|
||||
heatIcon = event.map.registerIcon("mekanism:LiquidHeat");
|
||||
|
||||
|
||||
Reference in new issue
Block a user