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