Class ModLangGen
java.lang.Object
net.minheur.techno_lib.lang.LanguageGenProvider
net.minheur.mhm_bitsnbobs.datagen.ModLangGen
- All Implemented Interfaces:
net.minecraft.data.DataProvider
Lang generator. Specify with the function what type of translation you want then set the parameters to define the key.
Once done, add the translations. You need at least the
en_us one.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minheur.techno_lib.lang.LanguageGenProvider
LanguageGenProvider.TranslationBuilderNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an advancement title translation builder from theAdvancementBuilderyou set.addMenuName(String id) protected voidThis method is the one who get Override by the class extending this.Methods inherited from class net.minheur.techno_lib.lang.LanguageGenProvider
add, add, add, add, add, add, add, addAdvancementDesc, addAdvancementDesc, addAdvancementTitle, addAttackDeath, addAttackDeathItem, addAttackDeathPlayer, addBlock, addCreativeTab, addEffect, addEnchantment, addEntityType, addGuiName, addItem, addItemStack, addRecipeName, addRecipeProperty, addSound, addTooltip, addTooltipCredit, addVillagerType, getName, run
-
Constructor Details
-
ModLangGen
protected ModLangGen(net.minecraft.data.PackOutput output)
-
-
Method Details
-
addTranslation
protected void addTranslation()Description copied from class:LanguageGenProviderThis method is the one who get Override by the class extending this.- Specified by:
addTranslationin classLanguageGenProvider
-
addMenuName
-
addAdvancementTitle
Description copied from class:LanguageGenProviderCreate an advancement title translation builder from theAdvancementBuilderyou set. Used to get easier translation when using this system of advancements.- Overrides:
addAdvancementTitlein classLanguageGenProvider- Parameters:
adv- theAdvancementBuilderyou want.- Returns:
- a builder for advancement
-