接口的使用
org.bukkit.metadata.MetadataValue
-
org.bukkit.metadata中MetadataValue的使用
修饰符和类型类说明class
A FixedMetadataValue is a special case metadata item that contains the same value forever after initialization.class
The LazyMetadataValue class implements a type of metadata that is not computed until another plugin asks for it.class
Optional base class for facilitating MetadataValue implementations.修饰符和类型方法说明Metadatable.getMetadata
(String metadataKey) Returns a list of previously set metadata values from the implementing object's metadata store.MetadataStore.getMetadata
(T subject, String metadataKey) Returns all metadata values attached to an object.MetadataStoreBase.getMetadata
(T subject, String metadataKey) Returns all metadata values attached to an object.修饰符和类型方法说明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.