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