Missing Multiblock message can now be localized
This commit is contained in:
parent
413feac35c
commit
c11086243b
5 changed files with 13 additions and 3 deletions
|
@ -8,6 +8,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import techreborn.client.container.ContainerBlastFurnace;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.tiles.TileBlastFurnace;
|
||||
|
||||
|
||||
|
@ -49,7 +50,7 @@ public class GuiBlastFurnace extends GuiContainer {
|
|||
if(blastfurnace.getHeat() == 0)
|
||||
{
|
||||
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - 0, 114, 10);
|
||||
this.fontRendererObj.drawString("MISSING MULTIBLOCK", k + 38, l + 52 + 12 - 0, -1);
|
||||
this.fontRendererObj.drawString(ModInfo.MISSING_MULTIBLOCK, k + 38, l + 52 + 12 - 0, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ import net.minecraft.util.IIcon;
|
|||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import techreborn.client.container.ContainerGrinder;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.tiles.TileGrinder;
|
||||
|
||||
public class GuiGrinder extends GuiContainer{
|
||||
|
@ -47,7 +48,7 @@ public class GuiGrinder extends GuiContainer{
|
|||
if(grinder.getMutliBlock() != true)
|
||||
{
|
||||
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - j, 114, 10);
|
||||
this.fontRendererObj.drawString("MISSING MULTIBLOCK", k + 38, l + 52 + 12 - j, -1);
|
||||
this.fontRendererObj.drawString(ModInfo.MISSING_MULTIBLOCK, k + 38, l + 52 + 12 - j, -1);
|
||||
}
|
||||
|
||||
if(grinder.tank.getFluidAmount() != 0) {
|
||||
|
|
|
@ -9,6 +9,7 @@ import net.minecraft.util.ResourceLocation;
|
|||
import net.minecraft.util.StatCollector;
|
||||
import techreborn.client.container.ContainerCrafting;
|
||||
import techreborn.client.container.ContainerImplosionCompressor;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.tiles.TileImplosionCompressor;
|
||||
|
||||
public class GuiImplosionCompressor extends GuiContainer{
|
||||
|
@ -50,7 +51,7 @@ public class GuiImplosionCompressor extends GuiContainer{
|
|||
if(compresser.getMutliBlock() != true)
|
||||
{
|
||||
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - j, 114, 10);
|
||||
this.fontRendererObj.drawString("MISSING MULTIBLOCK", k + 38, l + 52 + 12 - j, -1);
|
||||
this.fontRendererObj.drawString(ModInfo.MISSING_MULTIBLOCK, k + 38, l + 52 + 12 - j, -1);
|
||||
}
|
||||
|
||||
this.drawTexturedModalRect(k + 60, l + 38, 176, 14, j + 1, 16);
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package techreborn.lib;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class ModInfo {
|
||||
public static final String MOD_NAME = "TechReborn";
|
||||
public static final String MOD_ID = "techreborn";
|
||||
|
@ -10,6 +12,8 @@ public class ModInfo {
|
|||
public static final String CLIENT_PROXY_CLASS = "techreborn.proxies.ClientProxy";
|
||||
public static final String GUI_FACTORY_CLASS = "techreborn.config.TechRebornGUIFactory";
|
||||
|
||||
public static final String MISSING_MULTIBLOCK = StatCollector.translateToLocal("techreborn.message.missingmultiblock");
|
||||
|
||||
public static final class Keys
|
||||
{
|
||||
public static final String CATEGORY = "keys.techreborn.category";
|
||||
|
|
|
@ -768,3 +768,6 @@ config.techreborn.category.general=General Configs
|
|||
config.techreborn.category.world=World Configs
|
||||
config.techreborn.category.power=Power Configs
|
||||
config.techreborn.category.crafting=Crafting Configs
|
||||
|
||||
#Message
|
||||
techreborn.message.missingmultiblock=MISSING MULTIBLOCK
|
||||
|
|
Loading…
Add table
Reference in a new issue