REI integration
This commit is contained in:
parent
74c6c14b2a
commit
e0cf41db63
24 changed files with 272 additions and 38 deletions
|
@ -2,11 +2,8 @@ package ru.betterend.util;
|
|||
|
||||
import net.minecraft.client.resource.language.I18n;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import ru.betterend.BetterEnd;
|
||||
|
||||
public class LangUtil {
|
||||
private final static String MODID = BetterEnd.MOD_ID;
|
||||
|
||||
public final static String CONFIG_ELEMENT = "configuration";
|
||||
|
||||
private String element;
|
||||
|
@ -27,8 +24,12 @@ public class LangUtil {
|
|||
return getText(element, key);
|
||||
}
|
||||
|
||||
public static String translate(String key) {
|
||||
return I18n.translate(key);
|
||||
}
|
||||
|
||||
public static String getString(String element, String key) {
|
||||
return I18n.translate(String.format("%s.%s.%s", MODID, element, key));
|
||||
return translate(String.format("%s.%s", element, key));
|
||||
}
|
||||
|
||||
public static TranslatableText getText(String element, String key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue