Interface ResourcePack.Builder

Enclosing interface:
ResourcePack

public static interface ResourcePack.Builder
A builder for a resource pack. It allows providing a content key manually.
Since:
2.6.2
  • Method Details

    • manifest

      Returns:
      the ResourcePackManifest of this resource pack
      Since:
      2.6.2
    • codec

      PackCodec codec()
      Returns:
      the PackCodec of this resource pack
      Since:
      2.6.2
    • contentKey

      String contentKey()
      Returns:
      the current content key, or an empty string if not set
      Since:
      2.6.2
    • contentKey

      ResourcePack.Builder contentKey(String contentKey)
      Sets a content key for this resource pack.
      Parameters:
      contentKey - the content key
      Returns:
      this builder
      Since:
      2.6.2
    • build

      ResourcePack build()
      Returns:
      the resource pack
      Since:
      2.6.2