mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-07-01 00:46:36 +02:00
25 lines
699 B
Java
25 lines
699 B
Java
|
package de.ellpeck.actuallyadditions.data;
|
||
|
|
||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||
|
import net.minecraft.data.DataGenerator;
|
||
|
import net.minecraftforge.common.data.LanguageProvider;
|
||
|
|
||
|
public class GeneratorLanguage extends LanguageProvider {
|
||
|
public GeneratorLanguage(DataGenerator gen) {
|
||
|
super(gen, ActuallyAdditions.MOD_ID, "en_us");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void addTranslations() {
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Very simply, prefixes all the keys with the mod_id.{key} instead of
|
||
|
* having to input it manually
|
||
|
*/
|
||
|
private void addPrefixed(String key, String text) {
|
||
|
add(String.format("%s.%s", ActuallyAdditions.MOD_ID, key), text);
|
||
|
}
|
||
|
}
|