Class MinestomAdventure

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

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

  • Method Details

    • tagStringIO

      public static TagStringIO tagStringIO()
      Gets the TagStringIO instance used to convert SNBT. This instance should be used for all Adventure related SNBT parsing and serialization. Note: This instance of the TagStringIO is configured to accept and emit heterogeneous lists
      Returns:
      the tag string IO instance
    • getDefaultLocale

      public static 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()
    • wrapNbt

      public static BinaryTagHolder wrapNbt(BinaryTag nbt)
    • unwrapNbt

      public static BinaryTag unwrapNbt(BinaryTagHolder holder)