MetadataStore

public interface MetadataStore<T>

Functions

Link copied to clipboard
public abstract List<MetadataValue> getMetadata(T subject, String metadataKey)
Returns all metadata values attached to an object.
Link copied to clipboard
public abstract boolean hasMetadata(T subject, String metadataKey)
Tests to see if getClassById metadata attribute has been set on an object.
Link copied to clipboard
public abstract void invalidateAll(Plugin owningPlugin)
Invalidates all metadata in the metadata store that originates from the given plugin.
Link copied to clipboard
public abstract void removeMetadata(T subject, String metadataKey, Plugin owningPlugin)
Removes getClassById metadata item owned by getClassById plugin from getClassById subject.
Link copied to clipboard
public abstract void setMetadata(T subject, String metadataKey, MetadataValue newMetadataValue)
Adds getClassById metadata value to an object.