Class MinestomAdventure

java.lang.Object
net.minestom.server.adventure.MinestomAdventure

public final class MinestomAdventure extends Object
Adventure related constants, etc.
  • Field Details

    • NBT_CODEC

      public static final Codec<org.jglrxavpok.hephaistos.nbt.NBT,String,org.jglrxavpok.hephaistos.nbt.NBTException,RuntimeException> NBT_CODEC
      A codec to convert between strings and NBT.
    • AUTOMATIC_COMPONENT_TRANSLATION

      public static boolean AUTOMATIC_COMPONENT_TRANSLATION
      If components should be automatically translated in outgoing packets.
    • COMPONENT_TRANSLATOR

      public static BiFunction<Component,Locale,Component> COMPONENT_TRANSLATOR
  • Method Details

    • getDefaultLocale

      @NotNull public static @NotNull Locale getDefaultLocale()
      Gets the default locale used to translate components when no overriding locale has been provided.
      Returns:
      the default locale
    • setDefaultLocale

      public static void setDefaultLocale(@Nullable @Nullable Locale defaultLocale)
      Sets the default locale used to translate components when no overriding locale has been provided.
      Parameters:
      defaultLocale - the new default, or null to return to Locale.getDefault()