Class PonderLocalization

java.lang.Object
net.createmod.ponder.foundation.registration.PonderLocalization
All Implemented Interfaces:
LangRegistryAccess

public class PonderLocalization extends Object implements LangRegistryAccess
  • Field Details

    • LANG_PREFIX

      public static final String LANG_PREFIX
      See Also:
    • UI_PREFIX

      public static final String UI_PREFIX
      See Also:
    • shared

      public final Map<net.minecraft.resources.ResourceLocation,String> shared
    • tag

      public final Map<net.minecraft.resources.ResourceLocation,net.createmod.catnip.utility.Couple<String>> tag
    • specific

      public final Map<net.minecraft.resources.ResourceLocation,Map<String,String>> specific
  • Constructor Details

    • PonderLocalization

      public PonderLocalization()
  • Method Details

    • clearAll

      public void clearAll()
    • clearShared

      public void clearShared()
    • registerShared

      public void registerShared(net.minecraft.resources.ResourceLocation key, String enUS)
    • registerTag

      public void registerTag(net.minecraft.resources.ResourceLocation key, String title, String description)
    • registerSpecific

      public void registerSpecific(net.minecraft.resources.ResourceLocation sceneId, String key, String enUS)
    • langKeyForShared

      protected static String langKeyForShared(net.minecraft.resources.ResourceLocation k)
    • langKeyForTag

      protected static String langKeyForTag(net.minecraft.resources.ResourceLocation k)
    • langKeyForTagDescription

      protected static String langKeyForTagDescription(net.minecraft.resources.ResourceLocation k)
    • langKeyForSpecific

      protected static String langKeyForSpecific(net.minecraft.resources.ResourceLocation sceneId, String k)
    • getShared

      public String getShared(net.minecraft.resources.ResourceLocation key)
      Specified by:
      getShared in interface LangRegistryAccess
    • getTagName

      public String getTagName(net.minecraft.resources.ResourceLocation key)
      Specified by:
      getTagName in interface LangRegistryAccess
    • getTagDescription

      public String getTagDescription(net.minecraft.resources.ResourceLocation key)
      Specified by:
      getTagDescription in interface LangRegistryAccess
    • getSpecific

      public String getSpecific(net.minecraft.resources.ResourceLocation sceneId, String k)
      Specified by:
      getSpecific in interface LangRegistryAccess
    • generateSceneLang

      public void generateSceneLang()
    • provideLang

      public void provideLang(String modId, BiConsumer<String,String> consumer)
      Description copied from interface: LangRegistryAccess
      Generate all Lang-entries with their enUS defaults that were declared in code and have them consumed by the passed BiConsumer
      Specified by:
      provideLang in interface LangRegistryAccess
      Parameters:
      modId - the ModId (or namespace) that you want to collect the lang entries for