Interface MapMetadatable
- All Superinterfaces:
- Metadatable
- All Known Implementing Classes:
- AbstractCommandBlockActor,- AbstractNonPlayerActor,- AbstractPlayerActor,- AsyncPlayer,- LocationMaskedPlayerWrapper,- PlayerProxy,- SilentPlayerWrapper
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.fastasyncworldedit.core.entity.MetadatableMetadatable.METADATA_KEYS
- 
Method SummaryModifier and TypeMethodDescriptiondefault <V> VdeleteMeta(String key) Deletes the given metadata key from object.default <T> TgetAndSetMeta(String key, T value) default <V> VGets the metadata value to which the specified key is mapped, ornullif the key is not set.default <V> VGets the metadata value to which the specified key is mapped, or the default value if no metadata exists for the key.default booleanhasMeta()Checks if the object contains any metadata.default ObjectputIfAbsent(String key, Object value) default voidSet some session only metadata for the player
- 
Method Details- 
getRawMeta
- 
setMetaSet some session only metadata for the player- Specified by:
- setMetain interface- Metadatable
- Parameters:
- key-
- value-
 
- 
getAndSetMeta- Specified by:
- getAndSetMetain interface- Metadatable
 
- 
hasMetadefault boolean hasMeta()Checks if the object contains any metadata.- Specified by:
- hasMetain interface- Metadatable
- Returns:
- trueif there is metadata set for the object
 
- 
putIfAbsent
- 
getMetaGets the metadata value to which the specified key is mapped, ornullif the key is not set.- Specified by:
- getMetain interface- Metadatable
- Parameters:
- key- the key of the metadata value to retrieve
- Returns:
- the value of the metadata or nullif none exists
 
- 
getMetaGets the metadata value to which the specified key is mapped, or the default value if no metadata exists for the key.- Specified by:
- getMetain interface- Metadatable
- Parameters:
- key- the key of the metadata value to retrieve
- def- the value to return if there is no metadata for the given key
- Returns:
- the metadata value for the key, if present; else the default value
 
- 
deleteMetaDeletes the given metadata key from object. Do not delete metadata set by another plugin unless you know what you are doing.- Specified by:
- deleteMetain interface- Metadatable
- Parameters:
- key- the key identifying the metadata to remove.
- Returns:
- the previous value associated with they given key
 
 
-