@ApiStatus.NonExtendable
public interface Metadata
extends net.kyori.examination.Examinable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Metadata.Builder |
| Modifier and Type | Field and Description |
|---|---|
static Metadata |
EMPTY
Deprecated.
Use
empty() instead |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull Metadata.Builder |
builder()
Deprecated.
Use
metadata() instead |
static @NotNull Metadata |
empty()
Creates an empty
Metadata instance. |
<T extends MetadataPart> |
meta(@NotNull java.lang.Class<T> type)
Gets the metadata part of the given type.
|
static @NotNull Metadata.Builder |
metadata()
Creates a new
Metadata builder. |
@Unmodifiable @NotNull java.util.Collection<MetadataPart> |
parts()
Gets all the metadata parts in this metadata object.
|
@NotNull Metadata.Builder |
toBuilder()
Converts this metadata object to a
Metadata.Builder
with all the metadata parts in this object. |
@Contract(value="-> new") @NotNull static @NotNull Metadata.Builder metadata()
Metadata builder.@NotNull static @NotNull Metadata empty()
Metadata instance.@Contract(value="-> new") @Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull Metadata.Builder builder()
metadata() insteadMetadata builder.@NotNull @Unmodifiable @NotNull java.util.Collection<MetadataPart> parts()
@Nullable <T extends MetadataPart> T meta(@NotNull @NotNull java.lang.Class<T> type)
T - The metadata part typetype - The metadata part type@Contract(value="-> new") @NotNull @NotNull Metadata.Builder toBuilder()
Metadata.Builder
with all the metadata parts in this object.