Rename Solar Evaporation Plant to Thermal Evaporation Plant

This commit is contained in:
aidancbrady committed 2016-02-18 18:37:38 -05:00
1 parent 4d60d234f3
commit 84da514b54
32 files changed
+190 -155

No files matched your search

@@ -53,7 +53,7 @@ import mekanism.client.gui.GuiRotaryCondensentrator;
import mekanism.client.gui.GuiSeismicReader;
import mekanism.client.gui.GuiSeismicVibrator;
import mekanism.client.gui.GuiSideConfiguration;
import mekanism.client.gui.GuiSolarEvaporationController;
import mekanism.client.gui.GuiThermalEvaporationController;
import mekanism.client.gui.GuiSolarNeutronActivator;
import mekanism.client.gui.GuiTeleporter;
import mekanism.client.gui.GuiTransporterConfig;
@@ -96,7 +96,7 @@ import mekanism.client.render.tileentity.RenderObsidianTNT;
import mekanism.client.render.tileentity.RenderPortableTank;
import mekanism.client.render.tileentity.RenderPressurizedReactionChamber;
import mekanism.client.render.tileentity.RenderRotaryCondensentrator;
import mekanism.client.render.tileentity.RenderSalinationController;
import mekanism.client.render.tileentity.RenderThermalEvaporationController;
import mekanism.client.render.tileentity.RenderSeismicVibrator;
import mekanism.client.render.tileentity.RenderSolarNeutronActivator;
import mekanism.client.render.tileentity.RenderTeleporter;
@@ -165,7 +165,7 @@ import mekanism.common.tile.TileEntityPrecisionSawmill;
import mekanism.common.tile.TileEntityPurificationChamber;
import mekanism.common.tile.TileEntityRotaryCondensentrator;
import mekanism.common.tile.TileEntitySeismicVibrator;
import mekanism.common.tile.TileEntitySolarEvaporationController;
import mekanism.common.tile.TileEntityThermalEvaporationController;
import mekanism.common.tile.TileEntitySolarNeutronActivator;
import mekanism.common.tile.TileEntityStructuralGlass;
import mekanism.common.tile.TileEntityTeleporter;
@@ -313,7 +313,7 @@ public class ClientProxy extends CommonProxy
ClientRegistry.registerTileEntity(TileEntityChemicalInfuser.class, "ChemicalInfuser", new RenderChemicalInfuser());
ClientRegistry.registerTileEntity(TileEntityChemicalInjectionChamber.class, "ChemicalInjectionChamber", new RenderConfigurableMachine());
ClientRegistry.registerTileEntity(TileEntityElectrolyticSeparator.class, "ElectrolyticSeparator", new RenderElectrolyticSeparator());
ClientRegistry.registerTileEntity(TileEntitySolarEvaporationController.class, "SalinationController", new RenderSalinationController());
ClientRegistry.registerTileEntity(TileEntityThermalEvaporationController.class, "SalinationController", new RenderThermalEvaporationController()); //TODO rename
ClientRegistry.registerTileEntity(TileEntityPrecisionSawmill.class, "PrecisionSawmill", new RenderConfigurableMachine());
ClientRegistry.registerTileEntity(TileEntityChemicalDissolutionChamber.class, "ChemicalDissolutionChamber", new RenderChemicalDissolutionChamber());
ClientRegistry.registerTileEntity(TileEntityChemicalWasher.class, "ChemicalWasher", new RenderChemicalWasher());
@@ -469,7 +469,7 @@ public class ClientProxy extends CommonProxy
case 32:
return new GuiElectrolyticSeparator(player.inventory, (TileEntityElectrolyticSeparator)tileEntity);
case 33:
return new GuiSolarEvaporationController(player.inventory, (TileEntitySolarEvaporationController)tileEntity);
return new GuiThermalEvaporationController(player.inventory, (TileEntityThermalEvaporationController)tileEntity);
case 34:
return new GuiPrecisionSawmill(player.inventory, (TileEntityPrecisionSawmill)tileEntity);
case 35:
@@ -4,8 +4,8 @@ import mekanism.api.util.UnitDisplayUtils.TemperatureUnit;
import mekanism.client.gui.element.GuiFluidGauge;
import mekanism.client.gui.element.GuiFluidGauge.IFluidInfoHandler;
import mekanism.client.gui.element.GuiGauge;
import mekanism.common.inventory.container.ContainerSolarEvaporationController;
import mekanism.common.tile.TileEntitySolarEvaporationController;
import mekanism.common.inventory.container.ContainerThermalEvaporationController;
import mekanism.common.tile.TileEntityThermalEvaporationController;
import mekanism.common.util.LangUtils;
import mekanism.common.util.MekanismUtils;
import mekanism.common.util.MekanismUtils.ResourceType;
@@ -18,13 +18,13 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class GuiSolarEvaporationController extends GuiMekanism
public class GuiThermalEvaporationController extends GuiMekanism
{
public TileEntitySolarEvaporationController tileEntity;
public TileEntityThermalEvaporationController tileEntity;
public GuiSolarEvaporationController(InventoryPlayer inventory, TileEntitySolarEvaporationController tentity)
public GuiThermalEvaporationController(InventoryPlayer inventory, TileEntityThermalEvaporationController tentity)
{
super(tentity, new ContainerSolarEvaporationController(inventory, tentity));
super(tentity, new ContainerThermalEvaporationController(inventory, tentity));
tileEntity = tentity;
guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
@@ -33,14 +33,14 @@ public class GuiSolarEvaporationController extends GuiMekanism
{
return tileEntity.inputTank;
}
}, GuiGauge.Type.STANDARD, this, MekanismUtils.getResource(ResourceType.GUI, "GuiSolarEvaporationController.png"), 6, 13));
}, GuiGauge.Type.STANDARD, this, MekanismUtils.getResource(ResourceType.GUI, "GuiThermalEvaporationController.png"), 6, 13));
guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
@Override
public FluidTank getTank()
{
return tileEntity.outputTank;
}
}, GuiGauge.Type.STANDARD, this, MekanismUtils.getResource(ResourceType.GUI, "GuiSolarEvaporationController.png"), 152, 13));
}, GuiGauge.Type.STANDARD, this, MekanismUtils.getResource(ResourceType.GUI, "GuiThermalEvaporationController.png"), 152, 13));
}
@Override
@@ -102,7 +102,7 @@ public class GuiSolarEvaporationController extends GuiMekanism
@Override
protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY)
{
mc.renderEngine.bindTexture(MekanismUtils.getResource(ResourceType.GUI, "GuiSolarEvaporationController.png"));
mc.renderEngine.bindTexture(MekanismUtils.getResource(ResourceType.GUI, "GuiThermalEvaporationController.png"));
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int guiWidth = (width - xSize) / 2;
int guiHeight = (height - ySize) / 2;
@@ -16,7 +16,7 @@ import mekanism.client.gui.GuiPRC;
import mekanism.client.gui.GuiPrecisionSawmill;
import mekanism.client.gui.GuiPurificationChamber;
import mekanism.client.gui.GuiRotaryCondensentrator;
import mekanism.client.gui.GuiSolarEvaporationController;
import mekanism.client.gui.GuiThermalEvaporationController;
import mekanism.client.gui.GuiSolarNeutronActivator;
import mekanism.common.MekanismBlocks;
import mekanism.common.MekanismItems;
@@ -66,8 +66,8 @@ public class NEIMekanismConfig implements IConfigureNEI
API.registerRecipeHandler(new PrecisionSawmillRecipeHandler());
API.registerUsageHandler(new PrecisionSawmillRecipeHandler());
API.registerRecipeHandler(new SolarEvaporationRecipeHandler());
API.registerUsageHandler(new SolarEvaporationRecipeHandler());
API.registerRecipeHandler(new ThermalEvaporationRecipeHandler());
API.registerUsageHandler(new ThermalEvaporationRecipeHandler());
API.registerRecipeHandler(new ChemicalDissolutionChamberRecipeHandler());
API.registerUsageHandler(new ChemicalDissolutionChamberRecipeHandler());
@@ -102,12 +102,12 @@ public class NEIMekanismConfig implements IConfigureNEI
API.setGuiOffset(GuiRotaryCondensentrator.class, RotaryCondensentratorRecipeHandler.xOffset, RotaryCondensentratorRecipeHandler.yOffset);
API.setGuiOffset(GuiElectrolyticSeparator.class, ElectrolyticSeparatorRecipeHandler.xOffset, ElectrolyticSeparatorRecipeHandler.yOffset);
API.setGuiOffset(GuiPrecisionSawmill.class, 16, 6);
API.setGuiOffset(GuiSolarEvaporationController.class, SolarEvaporationRecipeHandler.xOffset, SolarEvaporationRecipeHandler.yOffset);
API.setGuiOffset(GuiThermalEvaporationController.class, ThermalEvaporationRecipeHandler.xOffset, ThermalEvaporationRecipeHandler.yOffset);
API.setGuiOffset(GuiChemicalDissolutionChamber.class, ChemicalDissolutionChamberRecipeHandler.xOffset, ChemicalDissolutionChamberRecipeHandler.yOffset);
API.setGuiOffset(GuiChemicalWasher.class, ChemicalWasherRecipeHandler.xOffset, ChemicalWasherRecipeHandler.yOffset);
API.setGuiOffset(GuiChemicalCrystallizer.class, ChemicalCrystallizerRecipeHandler.xOffset, ChemicalCrystallizerRecipeHandler.yOffset);
API.setGuiOffset(GuiPRC.class, PRCRecipeHandler.xOffset, PRCRecipeHandler.yOffset);
API.setGuiOffset(GuiSolarEvaporationController.class, SolarEvaporationRecipeHandler.xOffset, SolarEvaporationRecipeHandler.yOffset);
API.setGuiOffset(GuiThermalEvaporationController.class, ThermalEvaporationRecipeHandler.xOffset, ThermalEvaporationRecipeHandler.yOffset);
API.setGuiOffset(GuiSolarNeutronActivator.class, SolarNeutronRecipeHandler.xOffset, SolarNeutronRecipeHandler.yOffset);
GuiContainerManager.addSlotClickHandler(new MekanismSlotClickHandler());
@@ -9,10 +9,10 @@ import java.util.Collection;
import java.util.List;
import java.util.Map;
import mekanism.client.gui.GuiSolarEvaporationController;
import mekanism.client.gui.GuiThermalEvaporationController;
import mekanism.common.ObfuscatedNames;
import mekanism.common.recipe.RecipeHandler.Recipe;
import mekanism.common.recipe.machines.SolarEvaporationRecipe;
import mekanism.common.recipe.machines.ThermalEvaporationRecipe;
import mekanism.common.util.LangUtils;
import mekanism.common.util.MekanismUtils;
import net.minecraft.client.gui.inventory.GuiContainer;
@@ -26,7 +26,7 @@ import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.GuiRecipe;
import codechicken.nei.recipe.TemplateRecipeHandler;
public class SolarEvaporationRecipeHandler extends BaseRecipeHandler
public class ThermalEvaporationRecipeHandler extends BaseRecipeHandler
{
private int ticksPassed;
@@ -36,35 +36,35 @@ public class SolarEvaporationRecipeHandler extends BaseRecipeHandler
@Override
public String getRecipeName()
{
return LangUtils.localize("gui.solarEvaporationController.short");
return LangUtils.localize("gui.thermalEvaporationController.short");
}
@Override
public String getOverlayIdentifier()
{
return "solarevaporation";
return "thermalevaporation";
}
@Override
public String getGuiTexture()
{
return "mekanism:gui/nei/GuiSolarEvaporationController.png";
return "mekanism:gui/nei/GuiThermalEvaporationController.png";
}
@Override
public Class getGuiClass()
{
return GuiSolarEvaporationController.class;
return GuiThermalEvaporationController.class;
}
public String getRecipeId()
{
return "mekanism.solarevaporation";
return "mekanism.thermalevaporation";
}
public Collection<SolarEvaporationRecipe> getRecipes()
public Collection<ThermalEvaporationRecipe> getRecipes()
{
return Recipe.SOLAR_EVAPORATION_PLANT.get().values();
return Recipe.THERMAL_EVAPORATION_PLANT.get().values();
}
@Override
@@ -112,14 +112,14 @@ public class SolarEvaporationRecipeHandler extends BaseRecipeHandler
{
if(outputId.equals(getRecipeId()))
{
for(SolarEvaporationRecipe irecipe : getRecipes())
for(ThermalEvaporationRecipe irecipe : getRecipes())
{
arecipes.add(new CachedIORecipe(irecipe));
}
}
else if(outputId.equals("fluid") && results.length == 1 && results[0] instanceof FluidStack)
{
for(SolarEvaporationRecipe irecipe : getRecipes())
for(ThermalEvaporationRecipe irecipe : getRecipes())
{
if(((FluidStack)results[0]).isFluidEqual(irecipe.recipeOutput.output))
{
@@ -137,7 +137,7 @@ public class SolarEvaporationRecipeHandler extends BaseRecipeHandler
{
if(inputId.equals("fluid") && ingredients.length == 1 && ingredients[0] instanceof FluidStack)
{
for(SolarEvaporationRecipe irecipe : getRecipes())
for(ThermalEvaporationRecipe irecipe : getRecipes())
{
if(irecipe.recipeInput.ingredient.isFluidEqual((FluidStack)ingredients[0]))
{
@@ -279,7 +279,7 @@ public class SolarEvaporationRecipeHandler extends BaseRecipeHandler
fluidOutput = output;
}
public CachedIORecipe(SolarEvaporationRecipe recipe)
public CachedIORecipe(ThermalEvaporationRecipe recipe)
{
this((FluidStack)recipe.recipeInput.ingredient, (FluidStack)recipe.recipeOutput.output);
}
@@ -16,7 +16,7 @@ import mekanism.api.transmitters.TransmissionType;
import mekanism.client.render.tileentity.RenderConfigurableMachine;
import mekanism.client.render.tileentity.RenderDynamicTank;
import mekanism.client.render.tileentity.RenderPortableTank;
import mekanism.client.render.tileentity.RenderSalinationController;
import mekanism.client.render.tileentity.RenderThermalEvaporationController;
import mekanism.common.ObfuscatedNames;
import mekanism.common.base.ISpecialBounds;
import mekanism.common.util.MekanismUtils;
@@ -141,7 +141,7 @@ public class MekanismRenderer
}
RenderDynamicTank.resetDisplayInts();
RenderSalinationController.resetDisplayInts();
RenderThermalEvaporationController.resetDisplayInts();
RenderPortableTank.resetDisplayInts();
}
}
@@ -8,7 +8,7 @@ import mekanism.client.render.MekanismRenderer;
import mekanism.client.render.MekanismRenderer.DisplayInteger;
import mekanism.client.render.MekanismRenderer.Model3D;
import mekanism.common.content.tank.TankUpdateProtocol;
import mekanism.common.tile.TileEntitySolarEvaporationController;
import mekanism.common.tile.TileEntityThermalEvaporationController;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
@@ -22,17 +22,17 @@ import cpw.mods.fml.relauncher.SideOnly;
import org.lwjgl.opengl.GL11;
@SideOnly(Side.CLIENT)
public class RenderSalinationController extends TileEntitySpecialRenderer
public class RenderThermalEvaporationController extends TileEntitySpecialRenderer
{
private static Map<SalinationRenderData, HashMap<Fluid, DisplayInteger[]>> cachedCenterFluids = new HashMap<SalinationRenderData, HashMap<Fluid, DisplayInteger[]>>();
@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float partialTick)
{
renderAModelAt((TileEntitySolarEvaporationController)tileEntity, x, y, z, partialTick);
renderAModelAt((TileEntityThermalEvaporationController)tileEntity, x, y, z, partialTick);
}
public void renderAModelAt(TileEntitySolarEvaporationController tileEntity, double x, double y, double z, float partialTick)
public void renderAModelAt(TileEntityThermalEvaporationController tileEntity, double x, double y, double z, float partialTick)
{
if(tileEntity.structured && tileEntity.inputTank.getFluid() != null)
{