Interface Library


  • @Immutable
    @TypeAdapters
    public interface Library
    • Method Detail

      • natives

        @Default
        default java.util.Map<java.lang.String,​java.lang.String> natives()
        A map of OS name to classifier.

        The value classifier may include the ${arch} token, which can be either 32 or 64.

        Returns:
        the natives this artifact may have
      • isNatives

        default boolean isNatives()
        Get whether this is a natives declaration or a standard dependency declaration.

        When a dependency contains natives, Mojang specifies it twice: Once with natives, and once without. The ones with natives are used only for extracting natives, and the ones without are only used when downloading dependencies.

        Returns:
        whether this is a natives dependency