This interface is implemented by all objects that can provide metadata about themselves.
More...
|
| void | setMetadata (String metadataKey, MetadataValue newMetadataValue) |
| | Sets a metadata value in the implementing object's metadata store.
|
| |
| List< MetadataValue > | getMetadata (String metadataKey) |
| | Returns a list of previously set metadata values from the implementing object's metadata store.
|
| |
| boolean | hasMetadata (String metadataKey) |
| | Tests to see whether the implementing object contains the given metadata value in its metadata store.
|
| |
| void | removeMetadata (String metadataKey, Plugin owningPlugin) |
| | Removes the given metadata value from the implementing object's metadata store.
|
| |
This interface is implemented by all objects that can provide metadata about themselves.
Definition at line 10 of file Metadatable.java.
| List<MetadataValue> org.bukkit.metadata.Metadatable.getMetadata |
( |
String |
metadataKey | ) |
|
Returns a list of previously set metadata values from the implementing object's metadata store.
- Parameters
-
| metadataKey | the unique metadata key being sought. |
- Returns
- A list of values, one for each plugin that has set the requested value.
| boolean org.bukkit.metadata.Metadatable.hasMetadata |
( |
String |
metadataKey | ) |
|
Tests to see whether the implementing object contains the given metadata value in its metadata store.
- Parameters
-
| metadataKey | the unique metadata key being queried. |
- Returns
- the existence of the metadataKey within subject.
| void org.bukkit.metadata.Metadatable.removeMetadata |
( |
String |
metadataKey, |
|
|
Plugin |
owningPlugin |
|
) |
| |
Removes the given metadata value from the implementing object's metadata store.
- Parameters
-
| metadataKey | the unique metadata key identifying the metadata to remove. |
| owningPlugin | This plugin's metadata value will be removed. All other values will be left untouched. |
- Exceptions
-
| IllegalArgumentException | If plugin is null |
| void org.bukkit.metadata.Metadatable.setMetadata |
( |
String |
metadataKey, |
|
|
MetadataValue |
newMetadataValue |
|
) |
| |
Sets a metadata value in the implementing object's metadata store.
- Parameters
-
| metadataKey | A unique key to identify this metadata. |
| newMetadataValue | The metadata value to apply. |
- Exceptions
-
| IllegalArgumentException | If value is null, or the owning plugin is null |
The documentation for this interface was generated from the following file: