org.bukkit.craftbukkit.metadata.WorldMetadataStore Maven / Gradle / Ivy
package org.bukkit.craftbukkit.metadata;
import org.bukkit.World;
import org.bukkit.metadata.MetadataStore;
import org.bukkit.metadata.MetadataStoreBase;
/**
* An WorldMetadataStore stores metadata values for {@link World} objects.
*/
public class WorldMetadataStore extends MetadataStoreBase implements MetadataStore {
/**
* Generates a unique metadata key for a {@link World} object based on the world UID.
*
* @param world the world
* @param metadataKey The name identifying the metadata value
* @return a unique metadata key
* @see WorldMetadataStore#disambiguate(Object, String)
*/
@Override
protected String disambiguate(World world, String metadataKey) {
return world.getUID().toString() + ":" + metadataKey;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy