Doing stuff and things

This commit is contained in:
Gig 2015-04-29 13:34:08 +01:00
parent fc2265d0eb
commit 8dda3c5ef5
12 changed files with 32 additions and 10 deletions

View file

@ -4,6 +4,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n; import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerAlloySmelter; import techreborn.client.container.ContainerAlloySmelter;
import techreborn.client.container.ContainerBlastFurnace; import techreborn.client.container.ContainerBlastFurnace;
import techreborn.tiles.TileAlloySmelter; import techreborn.tiles.TileAlloySmelter;
@ -38,7 +39,7 @@ public class GuiAlloySmelter extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Alloysmelter", 60, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.alloysmelter.name"), 60, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -4,6 +4,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n; import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerBlastFurnace; import techreborn.client.container.ContainerBlastFurnace;
import techreborn.tiles.TileBlastFurnace; import techreborn.tiles.TileBlastFurnace;
@ -36,7 +37,7 @@ public class GuiBlastFurnace extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Blastfurnace", 60, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.blastfurnace.name"), 60, 6, 4210752);
this.fontRendererObj.drawString(blastfurnace.getHeat() + " heat", 75, 20, 4210752); this.fontRendererObj.drawString(blastfurnace.getHeat() + " heat", 75, 20, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,

View file

@ -4,6 +4,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n; import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerCentrifuge; import techreborn.client.container.ContainerCentrifuge;
import techreborn.tiles.TileCentrifuge; import techreborn.tiles.TileCentrifuge;
@ -35,7 +36,7 @@ public class GuiCentrifuge extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Centrifuge", 110, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.centrifuge.name"), 110, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -11,6 +11,7 @@ import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
public class GuiChunkLoader extends GuiContainer{ public class GuiChunkLoader extends GuiContainer{
@ -63,7 +64,7 @@ public class GuiChunkLoader extends GuiContainer{
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Industrial Chunkloader", 30, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.chunkloader.name"), 30, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -9,6 +9,7 @@ import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
public class GuiGrinder extends GuiContainer{ public class GuiGrinder extends GuiContainer{
@ -39,7 +40,7 @@ public class GuiGrinder extends GuiContainer{
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Industrial Grinder", 60, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.grinder.name"), 60, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -8,6 +8,7 @@ import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
public class GuiImplosionCompressor extends GuiContainer{ public class GuiImplosionCompressor extends GuiContainer{
@ -38,7 +39,7 @@ public class GuiImplosionCompressor extends GuiContainer{
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Implosion Compressor", 60, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.implosioncompressor.name"), 60, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -9,6 +9,7 @@ import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
public class GuiMatterFabricator extends GuiContainer{ public class GuiMatterFabricator extends GuiContainer{
@ -39,7 +40,7 @@ public class GuiMatterFabricator extends GuiContainer{
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Matta Fabricator", 60, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.matterfabricator.name"), 60, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -4,6 +4,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n; import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerQuantumChest; import techreborn.client.container.ContainerQuantumChest;
import techreborn.tiles.TileQuantumChest; import techreborn.tiles.TileQuantumChest;
@ -35,7 +36,7 @@ public class GuiQuantumChest extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Quantum Chest", 8, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.quantumChest.name"), 8, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -4,6 +4,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n; import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerQuantumTank; import techreborn.client.container.ContainerQuantumTank;
import techreborn.tiles.TileQuantumTank; import techreborn.tiles.TileQuantumTank;
@ -35,7 +36,7 @@ public class GuiQuantumTank extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Quantum Tank", 8, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.quantumTank.name"), 8, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -1,8 +1,10 @@
package techreborn.client.gui; package techreborn.client.gui;
import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerRollingMachine; import techreborn.client.container.ContainerRollingMachine;
import techreborn.tiles.TileRollingMachine; import techreborn.tiles.TileRollingMachine;
@ -31,4 +33,13 @@ public class GuiRollingMachine extends GuiContainer {
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
} }
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_)
{
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.rollingmachine.name"), 8, 6, 4210752);
this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752);
}
} }

View file

@ -4,6 +4,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n; import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import techreborn.client.container.ContainerThermalGenerator; import techreborn.client.container.ContainerThermalGenerator;
import techreborn.tiles.TileThermalGenerator; import techreborn.tiles.TileThermalGenerator;
@ -35,7 +36,7 @@ public class GuiThermalGenerator extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, protected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_) int p_146979_2_)
{ {
this.fontRendererObj.drawString("Thermal Generator", 8, 6, 4210752); this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.thermalGenerator.name"), 8, 6, 4210752);
this.fontRendererObj.drawString( this.fontRendererObj.drawString(
I18n.format("container.inventory", new Object[0]), 8, I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752); this.ySize - 96 + 2, 4210752);

View file

@ -10,6 +10,7 @@ tile.techreborn.machineCasing.Standard.name=Standard Casing
tile.techreborn.machineCasing.Reinforced.name=Reinforced Casing tile.techreborn.machineCasing.Reinforced.name=Reinforced Casing
tile.techreborn.machineCasing.Advanced.name=Advanced Casing tile.techreborn.machineCasing.Advanced.name=Advanced Casing
tile.techreborn.blastfurnace.name=Blast Furnace tile.techreborn.blastfurnace.name=Blast Furnace
tile.techreborn.alloysmelter.name=Alloy Smelter
tile.techreborn.matterfabricator.name=Matter Fabricator tile.techreborn.matterfabricator.name=Matter Fabricator
tile.techreborn.implosioncompressor.name=Implosion Compressor tile.techreborn.implosioncompressor.name=Implosion Compressor
tile.techreborn.grinder.name=Industrial Grinder tile.techreborn.grinder.name=Industrial Grinder