Class MinecraftExtrasTranslationBundle

java.lang.Object
org.incendo.cloud.translations.minecraft.extras.MinecraftExtrasTranslationBundle

@API(status=STABLE) public final class MinecraftExtrasTranslationBundle extends Object
A bundle of minecraft-extras translations.

This can be registered to the command manager by accessing the caption registry using CommandManager.captionRegistry() and then registering the provider using CaptionRegistry.registerProvider(CaptionProvider):

TranslationBundle<C> bundle = MinecraftExtrasTranslationBundle.minecraftExtras(sender -> sender.locale());
 manager.captionRegistry().registerProvider(translationBundle);
  • Constructor Details

    • MinecraftExtrasTranslationBundle

      public MinecraftExtrasTranslationBundle()
  • Method Details

    • minecraftExtras

      public static <C> @NonNull TranslationBundle<C> minecraftExtras(@NonNull LocaleExtractor<C> localeExtractor)
      Returns the translation bundle for cloud-minecraft-extras translations.
      Type Parameters:
      C - command sender type
      Parameters:
      localeExtractor - locale extractor
      Returns:
      the translation bundle