mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-24 05:44:32 +00:00
Localization of GUI titles and NEI Calcinator values (#118)
This commit is contained in:
1 parent
5446f097c5
commit
e2fef45a90
12 files changed
+42
-6
No files matched your search
@@ -14,6 +14,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.common.util.Constants;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
@@ -53,7 +54,9 @@ public class NEICalcinatorHandler extends TemplateRecipeHandler {
|
||||
ItemStack[] orbStacks = NEIConfig.getBloodOrbs().stream().map(ItemStack::new).toArray(ItemStack[]::new);
|
||||
this.orbs = new PositionedStack(orbStacks, 32, 33);
|
||||
|
||||
this.amountText = String.format("%,d AR", amount);
|
||||
String formattedAmount = String.format("%,d", amount);
|
||||
this.amountText = StatCollector
|
||||
.translateToLocalFormatted("text.recipe.alchemicCalcinator.reagent", formattedAmount);
|
||||
this.amountTextWidth = fontRenderer.getStringWidth(amountText);
|
||||
|
||||
this.nameText = this.reagent.name;
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.common.demonVillage.tileEntity;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.tileentity.TileEntityChest;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.Int3;
|
||||
|
||||
@@ -12,7 +13,7 @@ public class TEDemonChest extends TileEntityChest implements ITilePortalNode {
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Demon's Chest";
|
||||
return StatCollector.translateToLocal("gui.demonChest.title");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -21,7 +21,7 @@ public class GuiTeleposer extends GuiContainer {
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int param1, int param2) {
|
||||
// the parameters for drawString are: string, x, y, color
|
||||
fontRendererObj.drawString("Teleposer", 64, 5, 4210752);
|
||||
fontRendererObj.drawString(StatCollector.translateToLocal("gui.bloodTeleposer.title"), 64, 5, 4210752);
|
||||
// draws "Inventory" or your regional equivalent
|
||||
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 8, 29, 4210752);
|
||||
}
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ public class GuiWritingTable extends GuiContainer {
|
||||
protected void drawGuiContainerForegroundLayer(int param1, int param2) {
|
||||
// draw text and stuff here
|
||||
// the parameters for drawString are: string, x, y, color
|
||||
fontRendererObj.drawString("Alchemic Chemistry Set", 8, 6, 4210752);
|
||||
fontRendererObj.drawString(StatCollector.translateToLocal("gui.blockWritingTable.title"), 8, 6, 4210752);
|
||||
// draws "Inventory" or your regional equivalent
|
||||
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 8, 130, 4210752);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user