Interface ResourcePack


public interface ResourcePack
Represents a resource pack sent to Bedrock clients

This representation of a resource pack only contains what Geyser requires to send it to the client.

Since:
2.1.1
  • Method Details

    • codec

      PackCodec codec()
      The codec for this pack.
      Returns:
      the codec for this pack
      Since:
      2.1.1
    • manifest

      Gets the resource pack manifest.
      Returns:
      the resource pack manifest
      Since:
      2.1.1
    • contentKey

      String contentKey()
      Gets the content key of the resource pack. Lack of a content key is represented by an empty String.
      Returns:
      the content key of the resource pack
      Since:
      2.1.1
    • uuid

      default UUID uuid()
      Shortcut for getting the UUID from the ResourcePackManifest.
      Returns:
      the resource pack uuid
      Since:
      2.6.2
    • create

      static ResourcePack create(PackCodec codec)
      Creates a resource pack with the given PackCodec.
      Parameters:
      codec - the pack codec
      Returns:
      the resource pack
      Since:
      2.1.1
    • builder

      static ResourcePack.Builder builder(PackCodec codec)
      Returns a ResourcePack.Builder for a resource pack. It can be used to set a content key.
      Parameters:
      codec - the PackCodec to base the builder on
      Returns:
      a ResourcePack.Builder to build a resource pack
      Since:
      2.6.2