Package | Description |
---|---|
org.bukkit.persistence |
Classes that allow attaching persistent data to various objects.
|
Modifier and Type | Class and Description |
---|---|
static class |
PersistentDataType.PrimitivePersistentDataType<T>
A default implementation that simply exists to pass on the retrieved or
inserted value to the next layer.
|
Modifier and Type | Method and Description |
---|---|
<T,Z> Z |
PersistentDataContainer.get(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type)
Returns the metadata value that is stored on the
PersistentDataHolder instance. |
<T,Z> Z |
PersistentDataContainer.get(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type)
Returns the metadata value that is stored on the
PersistentDataHolder instance. |
<T,Z> Z |
PersistentDataContainer.getOrDefault(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type,
Z defaultValue)
Returns the metadata value that is stored on the
PersistentDataHolder instance. |
<T,Z> Z |
PersistentDataContainer.getOrDefault(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type,
Z defaultValue)
Returns the metadata value that is stored on the
PersistentDataHolder instance. |
<T,Z> boolean |
PersistentDataContainer.has(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type)
Returns if the persistent metadata provider has metadata registered
matching the provided parameters.
|
<T,Z> boolean |
PersistentDataContainer.has(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type)
Returns if the persistent metadata provider has metadata registered
matching the provided parameters.
|
<T,Z> void |
PersistentDataContainer.set(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type,
Z value)
Stores a metadata value on the
PersistentDataHolder instance. |
<T,Z> void |
PersistentDataContainer.set(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type,
Z value)
Stores a metadata value on the
PersistentDataHolder instance. |
Copyright © 2022. All rights reserved.