public interface PlayerMetadataRegistry extends MetadataRegistry<UUID>
MetadataMaps for Players.| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataMap> |
get(org.bukkit.entity.Player player)
Gets a
MetadataMap for the given player, if one already exists and has
been cached in this registry. |
<K> Map<org.bukkit.entity.Player,K> |
getAllWithKey(MetadataKey<K> key)
Gets a map of the players with a given metadata key
|
MetadataMap |
provide(org.bukkit.entity.Player player)
Produces a
MetadataMap for the given player. |
cleanup, get, provide, remove@Nonnull MetadataMap provide(@Nonnull org.bukkit.entity.Player player)
MetadataMap for the given player.player - the player@Nonnull Optional<MetadataMap> get(@Nonnull org.bukkit.entity.Player player)
MetadataMap for the given player, if one already exists and has
been cached in this registry.player - the player@Nonnull <K> Map<org.bukkit.entity.Player,K> getAllWithKey(@Nonnull MetadataKey<K> key)
K - the key typekey - the keyCopyright © 2022. All rights reserved.