Class PonderLocalization
java.lang.Object
net.createmod.ponder.foundation.registration.PonderLocalization
- All Implemented Interfaces:
LangRegistryAccess
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()voidvoidgetShared(net.minecraft.resources.ResourceLocation key) getSpecific(net.minecraft.resources.ResourceLocation sceneId, String k) getTagDescription(net.minecraft.resources.ResourceLocation key) getTagName(net.minecraft.resources.ResourceLocation key) protected static StringlangKeyForShared(net.minecraft.resources.ResourceLocation k) protected static StringlangKeyForSpecific(net.minecraft.resources.ResourceLocation sceneId, String k) protected static StringlangKeyForTag(net.minecraft.resources.ResourceLocation k) protected static StringlangKeyForTagDescription(net.minecraft.resources.ResourceLocation k) voidprovideLang(String modId, BiConsumer<String, String> consumer) Generate all Lang-entries with their enUS defaults that were declared in code and have them consumed by the passed BiConsumervoidregisterShared(net.minecraft.resources.ResourceLocation key, String enUS) voidregisterSpecific(net.minecraft.resources.ResourceLocation sceneId, String key, String enUS) voidregisterTag(net.minecraft.resources.ResourceLocation key, String title, String description)
-
Field Details
-
LANG_PREFIX
- See Also:
-
UI_PREFIX
- See Also:
-
tag
-
specific
-
-
Constructor Details
-
PonderLocalization
public PonderLocalization()
-
-
Method Details
-
clearAll
public void clearAll() -
registerTag
-
registerSpecific
-
langKeyForTag
-
langKeyForTagDescription
-
langKeyForSpecific
-
getTagName
- Specified by:
getTagNamein interfaceLangRegistryAccess
-
getTagDescription
- Specified by:
getTagDescriptionin interfaceLangRegistryAccess
-
getSpecific
- Specified by:
getSpecificin interfaceLangRegistryAccess
-
generateSceneLang
public void generateSceneLang() -
provideLang
Description copied from interface:LangRegistryAccessGenerate all Lang-entries with their enUS defaults that were declared in code and have them consumed by the passed BiConsumer- Specified by:
provideLangin interfaceLangRegistryAccess- Parameters:
modId- the ModId (or namespace) that you want to collect the lang entries for
-