@ApiStatus.NonExtendable public interface PackMeta extends MetadataPart
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
description()
Returns the pack description.
|
@NotNull net.kyori.adventure.text.Component |
description0()
Deprecated.
This method will be renamed to description() and the
description() method that returns a string will be removed in
release 2.0.0
|
int |
format()
Deprecated.
Use
formats() instead |
@NotNull PackFormat |
formats()
Returns the supported pack formats.
|
static @NotNull PackMeta |
of(int format,
@NotNull net.kyori.adventure.text.Component description)
Creates a new
PackMeta instance from
the given values. |
static PackMeta |
of(int format,
java.lang.String description)
Creates a new
PackMeta instance from
the given values |
static @NotNull PackMeta |
of(@NotNull PackFormat format,
@NotNull net.kyori.adventure.text.Component description)
Creates a new
PackMeta instance from
the given values. |
type@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") int format()
formats() insteadThere are format versions assigned to specific Minecraft client versions, e.g.: 7 for Minecraft 1.17 and 1.17.1, 8 for Minecraft 1.18 and 1.18.1
@NotNull @NotNull PackFormat formats()
There are format versions assigned to specific Minecraft client versions, e.g.: 7 for Minecraft 1.17(.1), 8 for Minecraft 1.18(.1), and so on.
@NotNull @NotNull java.lang.String description()
@ApiStatus.Internal @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Deprecated @NotNull @NotNull net.kyori.adventure.text.Component description0()
static PackMeta of(int format, java.lang.String description)
PackMeta instance from
the given valuesformat - The pack formatdescription - The pack descriptionPackMeta instance@NotNull static @NotNull PackMeta of(@NotNull @NotNull PackFormat format, @NotNull @NotNull net.kyori.adventure.text.Component description)
PackMeta instance from
the given values.format - The pack formatdescription - The pack descriptionPackMeta instance