Package | Description |
---|---|
org.bukkit.metadata |
Classes dedicated to providing a layer of plugin specified data on various
Minecraft concepts.
|
Modifier and Type | Class and Description |
---|---|
class |
FixedMetadataValue
A FixedMetadataValue is a special case metadata item that contains the same
value forever after initialization.
|
class |
LazyMetadataValue
The LazyMetadataValue class implements a type of metadata that is not
computed until another plugin asks for it.
|
class |
MetadataValueAdapter
Optional base class for facilitating MetadataValue implementations.
|
Modifier and Type | Method and Description |
---|---|
List<MetadataValue> |
Metadatable.getMetadata(String metadataKey)
Returns a list of previously set metadata values from the implementing
object's metadata store.
|
List<MetadataValue> |
MetadataStore.getMetadata(T subject,
String metadataKey)
Returns all metadata values attached to an object.
|
List<MetadataValue> |
MetadataStoreBase.getMetadata(T subject,
String metadataKey)
Returns all metadata values attached to an object.
|
Modifier and Type | Method and Description |
---|---|
void |
Metadatable.setMetadata(String metadataKey,
MetadataValue newMetadataValue)
Sets a metadata value in the implementing object's metadata store.
|
void |
MetadataStore.setMetadata(T subject,
String metadataKey,
MetadataValue newMetadataValue)
Adds a metadata value to an object.
|
void |
MetadataStoreBase.setMetadata(T subject,
String metadataKey,
MetadataValue newMetadataValue)
Adds a metadata value to an object.
|
Copyright © 2014. All rights reserved.