Posted June 20, 20169 yr Is it possible to get a list/array of all available languages and the display names of every item in every language without having to change the set language of Minecraft? I like trains.
June 20, 20169 yr Author What do I pass in as a parameter to formatMessage(String, Object[])? I like trains.
June 20, 20169 yr Author I tried passing in an ItemStack, that wasn't it List<String> languages = new ArrayList<String>(); languages.add("en_US"); Locale testLocale = new Locale(); testLocale.loadLocaleDataFiles(Minecraft.getMinecraft().getResourceManager(), languages); ItemStack stack = new ItemStack(Items.IRON_INGOT); FMLLog.bigWarning(testLocale.formatMessage("%s", new Object[]{stack.getUnlocalizedName() + ".name"})); I like trains.
June 22, 20169 yr Author I might need a hint as to what classes I should look at. I suspect the I18n class and LanguageMap class in net.minecraft.util.text.translation I like trains.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.