diff --git a/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java b/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java index bca6f82..6abb0c3 100644 --- a/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java +++ b/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java @@ -6,7 +6,9 @@ import net.minecraft.world.inventory.MenuType; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.Item; +import net.minecraft.world.level.Level; import net.minecraft.world.level.biome.Biome; +import net.minecraft.world.level.levelgen.structure.Structure; import net.minecraftforge.common.data.LanguageProvider; import net.minecraftforge.registries.ForgeRegistries; @@ -28,10 +30,18 @@ public void addTrim(String key, String name) { this.add("trim_material." + this.id + "." + key, name + " Material"); } + public void addDimension(ResourceKey dimension, String name) { + this.add("dimension." + this.id + "." + dimension.location().getPath(), name); + } + public void addBiome(ResourceKey biome, String name) { this.add("biome." + this.id + "." + biome.location().getPath(), name); } + public void addStructure(ResourceKey structure, String name) { + this.add("structure." + this.id + "." + structure.location().getPath(), name); + } + public void addContainerType(Supplier> key, String name) { ResourceLocation location = ForgeRegistries.MENU_TYPES.getKey(key.get()); if (location != null) {