Package org.geysermc.geyser.api.pack
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 Summary
Modifier and TypeMethodDescription@NonNull PackCodeccodec()Thecodecfor this pack.@NonNull StringGets the content key of the resource pack.static @NonNull ResourcePackCreates a resource pack with the givenPackCodec.@NonNull ResourcePackManifestmanifest()Gets the resource pack manifest.
-
Method Details
-
codec
@NonNull PackCodec codec()Thecodecfor 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
Creates a resource pack with the givenPackCodec.- Parameters:
codec- the pack codec- Returns:
- the resource pack
-