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.

  • Method Details

    • codec

      @NonNull PackCodec codec()
      The codec for this pack.
      Returns:
      the codec for this pack
    • manifest

      @NonNull ResourcePackManifest manifest()
      Gets the resource pack manifest.
      Returns:
      the resource pack manifest
    • contentKey

      @NonNull 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
    • create

      static @NonNull ResourcePack create(@NonNull PackCodec codec)
      Creates a resource pack with the given PackCodec.
      Parameters:
      codec - the pack codec
      Returns:
      the resource pack