@ApiStatus.NonExtendable
public interface OverlayEntry
extends net.kyori.examination.Examinable
OverlaysMeta
part.
An overlay entry tells the client that there is an available overlay for an specific pack format range.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OverlayEntry.Directory
Specifies that the annotated string must be a valid directory
string for overlay entries.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
directory()
Gets the directory name that this overlay uses.
|
@NotNull PackFormat |
formats()
Gets the pack formats range that this overlay
supports.
|
static @NotNull OverlayEntry |
of(@NotNull PackFormat formats,
@NotNull java.lang.String directory)
Creates a new
OverlayEntry instance with the
given pack formats range and directory name. |
@NotNull @NotNull PackFormat formats()
@NotNull @NotNull java.lang.String directory()
@NotNull static @NotNull OverlayEntry of(@NotNull @NotNull PackFormat formats, @NotNull @OverlayEntry.Directory @NotNull java.lang.String directory)
OverlayEntry instance with the
given pack formats range and directory name.formats - The pack formats.directory - The directory name.