Package org.geysermc.geyser.api.pack
Interface ResourcePackManifest
public interface ResourcePackManifest
Represents a Bedrock edition resource pack manifest (manifest.json).
All resource packs are required to have such a file as it identifies the resource pack.
See
Microsoft's docs for more info.
- Since:
- 2.1.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a dependency of a resource pack.static interfaceRepresents the header of a resource pack.static interfaceRepresents a module of a resource pack.static interfaceRepresents a setting that is shown client-side that describe what a pack does.static interfaceRepresents a subpack of a resource pack.static interfaceRepresents a version of a resource pack. -
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<? extends ResourcePackManifest.Dependency> Gets theResourcePackManifest.Dependency's of the resource pack.intGets the format version of the resource pack.@NonNull ResourcePackManifest.Headerheader()Gets theResourcePackManifest.Headerof the resource pack.@NonNull Collection<? extends ResourcePackManifest.Module> modules()Gets theResourcePackManifest.Module's of the resource pack.@NonNull Collection<? extends ResourcePackManifest.Setting> settings()Gets theResourcePackManifest.Setting's of the resource pack.@NonNull Collection<? extends ResourcePackManifest.Subpack> subpacks()Gets theResourcePackManifest.Subpack's of the resource pack.
-
Method Details
-
formatVersion
int formatVersion()Gets the format version of the resource pack."1" is used for skin packs, "2" is used for resource and behavior packs, and world templates.
- Returns:
- the format version
- Since:
- 2.1.1
-
header
@NonNull ResourcePackManifest.Header header()Gets theResourcePackManifest.Headerof the resource pack.- Returns:
- the
ResourcePackManifest.Header - Since:
- 2.1.1
-
modules
@NonNull Collection<? extends ResourcePackManifest.Module> modules()Gets theResourcePackManifest.Module's of the resource pack.- Returns:
- a collection of modules
- Since:
- 2.1.1
-
dependencies
@NonNull Collection<? extends ResourcePackManifest.Dependency> dependencies()Gets theResourcePackManifest.Dependency's of the resource pack.- Returns:
- a collection of dependencies
- Since:
- 2.6.2
-
subpacks
@NonNull Collection<? extends ResourcePackManifest.Subpack> subpacks()Gets theResourcePackManifest.Subpack's of the resource pack. See Microsoft's docs on subpacks for more information.- Returns:
- a collection of subpacks
- Since:
- 2.6.2
-
settings
@NonNull Collection<? extends ResourcePackManifest.Setting> settings()Gets theResourcePackManifest.Setting's of the resource pack. These are shown to Bedrock client's in the resource pack settings menu (see here) to inform users about what the resource pack and sub-packs include.- Returns:
- a collection of settings
- Since:
- 2.6.2
-