Class FabricLanguageProvider

java.lang.Object
net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class FabricLanguageProvider extends Object implements net.minecraft.data.DataProvider
Extend this class and implement generateTranslations(TranslationBuilder). Make sure to use FabricLanguageProvider(FabricDataGenerator, String) FabricLanguageProvider} to declare what language code is being generated if it isn't en_us.

Register an instance of the class with FabricDataGenerator.addProvider(java.util.function.Function<net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator, P>) in a DataGeneratorEntrypoint