Merge pull request #249 from krisavi/Buildstuff

Builders language file fix
This commit is contained in:
SirSengir 2012-09-14 04:57:46 -07:00
commit 2f2dbe65b9
5 changed files with 29 additions and 26 deletions

View file

@ -87,4 +87,6 @@ tile.blockHopper=Hopper
tile.pumpBlock=Pump
tile.engineWood=Redstone Engine
tile.engineStone=Stirling Engine
tile.engineIron=Combustion Engine
tile.engineIron=Combustion Engine
tile.oilStill=Oil
tile.oilMoving=Oil

View file

@ -240,28 +240,28 @@ public class BuildCraftBuilders {
LanguageRegistry.addName(blueprintItem, "Blueprint");
markerBlock = new BlockMarker(Integer.parseInt(markerId.value));
GameRegistry.registerBlock(markerBlock.setBlockName("markerBlock"));
LanguageRegistry.addName(markerBlock, "Land Mark");
CoreProxy.proxy.registerBlock(markerBlock.setBlockName("markerBlock"));
CoreProxy.proxy.addName(markerBlock, "Land Mark");
pathMarkerBlock = new BlockPathMarker(Integer.parseInt(pathMarkerId.value));
GameRegistry.registerBlock(pathMarkerBlock.setBlockName("pathMarkerBlock"));
LanguageRegistry.addName(pathMarkerBlock, "Path Mark");
CoreProxy.proxy.registerBlock(pathMarkerBlock.setBlockName("pathMarkerBlock"));
CoreProxy.proxy.addName(pathMarkerBlock, "Path Mark");
fillerBlock = new BlockFiller(Integer.parseInt(fillerId.value));
GameRegistry.registerBlock(fillerBlock.setBlockName("fillerBlock"));
LanguageRegistry.addName(fillerBlock, "Filler");
CoreProxy.proxy.registerBlock(fillerBlock.setBlockName("fillerBlock"));
CoreProxy.proxy.addName(fillerBlock, "Filler");
builderBlock = new BlockBuilder(Integer.parseInt(builderId.value));
GameRegistry.registerBlock(builderBlock.setBlockName("builderBlock"));
LanguageRegistry.addName(builderBlock, "Builder");
CoreProxy.proxy.registerBlock(builderBlock.setBlockName("builderBlock"));
CoreProxy.proxy.addName(builderBlock, "Builder");
architectBlock = new BlockArchitect(Integer.parseInt(architectId.value));
GameRegistry.registerBlock(architectBlock.setBlockName("architectBlock"));
LanguageRegistry.addName(architectBlock, "Architect Table");
CoreProxy.proxy.registerBlock(architectBlock.setBlockName("architectBlock"));
CoreProxy.proxy.addName(architectBlock, "Architect Table");
libraryBlock = new BlockBlueprintLibrary(Integer.parseInt(libraryId.value));
GameRegistry.registerBlock(libraryBlock.setBlockName("libraryBlock"));
LanguageRegistry.addName(libraryBlock, "Blueprint Library");
CoreProxy.proxy.registerBlock(libraryBlock.setBlockName("libraryBlock"));
CoreProxy.proxy.addName(libraryBlock, "Blueprint Library");
GameRegistry.registerTileEntity(TileMarker.class, "Marker");
GameRegistry.registerTileEntity(TileFiller.class, "Filler");

View file

@ -120,12 +120,12 @@ public class BuildCraftEnergy {
LanguageRegistry.addName(new ItemStack(engineBlock, 1, 2), "Combustion Engine");
oilStill = (new BlockOilStill(oilStillId.getInt(DefaultProps.OIL_STILL_ID), Material.water)).setBlockName("oil");
LanguageRegistry.addName(oilStill.setBlockName("oilStill"), "Oil");
GameRegistry.registerBlock(oilStill);
CoreProxy.proxy.addName(oilStill.setBlockName("oilStill"), "Oil");
CoreProxy.proxy.registerBlock(oilStill);
oilMoving = (new BlockOilFlowing(oilMovingId.getInt(DefaultProps.OIL_MOVING_ID), Material.water)).setBlockName("oil");
LanguageRegistry.addName(oilMoving.setBlockName("oilMoving"), "Oil");
GameRegistry.registerBlock(oilMoving);
CoreProxy.proxy.addName(oilMoving.setBlockName("oilMoving"), "Oil");
CoreProxy.proxy.registerBlock(oilMoving);
// Oil and fuel
if (oilMoving.blockID + 1 != oilStill.blockID)

View file

@ -42,7 +42,8 @@ public class GuiTemplate extends GuiBuildCraft {
@Override
protected void drawGuiContainerForegroundLayer() {
fontRenderer.drawString(template.getInvName(), getCenteredOffset(template.getInvName()), 6, 0x404040);
String title = StringUtil.localize("tile.architectBlock");
fontRenderer.drawString(title, getCenteredOffset(title), 6, 0x404040);
fontRenderer.drawString(StringUtil.localize("gui.inventory"), 8, ySize - 152, 0x404040);
if (editMode && ((new Date()).getTime() / 100) % 8 >= 4)

View file

@ -11,6 +11,7 @@ import buildcraft.core.DefaultProps;
import buildcraft.core.GuiIds;
import buildcraft.core.proxy.CoreProxy;
import buildcraft.core.utils.Utils;
import buildcraft.core.utils.StringUtil;
import buildcraft.transport.triggers.ActionEnergyPulser;
import net.minecraft.src.EntityPlayer;
@ -80,22 +81,21 @@ public class GateVanilla extends Gate {
@Override
public String getName() {
switch (kind) {
case Single:
return "Gate";
return StringUtil.localize("item.pipeGate.0");
case AND_2:
return "Iron AND Gate";
return StringUtil.localize("item.pipeGate.1");
case AND_3:
return "Golden AND Gate";
return StringUtil.localize("item.pipeGate.3");
case AND_4:
return "Diamond AND Gate";
return StringUtil.localize("item.pipeGate.5");
case OR_2:
return "Iron OR Gate";
return StringUtil.localize("item.pipeGate.2");
case OR_3:
return "Golden OR Gate";
return StringUtil.localize("item.pipeGate.4");
case OR_4:
return "Diamond OR Gate";
return StringUtil.localize("item.pipeGate.6");
default:
return "";
}