Package org.geysermc.geyser.api.pack
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 Summary
Modifier and TypeMethodDescriptionbuild()codec()contentKey(@NonNull String contentKey) Sets a content key for this resource pack.manifest()
-
Method Details
-
manifest
ResourcePackManifest manifest()- Returns:
- the
ResourcePackManifestof this resource pack - Since:
- 2.6.2
-
codec
PackCodec codec()- Returns:
- the
PackCodecof 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
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
-