Lang & more utils
This commit is contained in:
parent
b47728cbd6
commit
dc0027afd9
3 changed files with 29 additions and 2 deletions
|
@ -9,6 +9,8 @@ import com.google.common.collect.Lists;
|
|||
import com.google.gson.Gson;
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.registry.EndBiomes;
|
||||
import ru.betterend.registry.EndItems;
|
||||
|
@ -56,6 +58,19 @@ public class TranslationHelper {
|
|||
}
|
||||
});
|
||||
|
||||
Registry.ENTITY_TYPE.forEach((entity) -> {
|
||||
Identifier id = Registry.ENTITY_TYPE.getId(entity);
|
||||
if (id.getNamespace().equals(BetterEnd.MOD_ID)) {
|
||||
String name = "biome." + BetterEnd.MOD_ID + "." + id.getPath();
|
||||
if (!translationEn.has(name)) {
|
||||
missingNamesEn.add(name);
|
||||
}
|
||||
if (!translationRu.has(name)) {
|
||||
missingNamesRu.add(name);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!missingNamesEn.isEmpty() || !missingNamesRu.isEmpty()) {
|
||||
|
||||
System.out.println("========================================");
|
||||
|
|
|
@ -282,5 +282,11 @@
|
|||
|
||||
"block.betterend.flavolite_lantern": "Flavolite Lantern",
|
||||
"block.betterend.lantern_end_stone": "End Stone Lantern",
|
||||
"block.betterend.violecite_lantern": "Violecite Lantern"
|
||||
"block.betterend.violecite_lantern": "Violecite Lantern",
|
||||
|
||||
"biome.betterend.dragonfly": "Dragonfly",
|
||||
"biome.betterend.end_fish": "End Fish",
|
||||
"biome.betterend.end_slime": "End Slime",
|
||||
"biome.betterend.shadow_walker": "Shadow Walker",
|
||||
"item.betterend.spawn_egg_shadow_walker": "Shadow Walker Spawn Egg"
|
||||
}
|
|
@ -284,5 +284,11 @@
|
|||
|
||||
"block.betterend.flavolite_lantern": "Флаволитовый фонарь",
|
||||
"block.betterend.lantern_end_stone": "Фонарь из камня края",
|
||||
"block.betterend.violecite_lantern": "Виолецитовый фонарь"
|
||||
"block.betterend.violecite_lantern": "Виолецитовый фонарь",
|
||||
|
||||
"biome.betterend.dragonfly": "Стрекоза",
|
||||
"biome.betterend.end_fish": "Рыба края",
|
||||
"biome.betterend.end_slime": "Слизень края",
|
||||
"biome.betterend.shadow_walker": "Теневой ходок",
|
||||
"item.betterend.spawn_egg_shadow_walker": "Яйцо призыва теневого ходока"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue