Class MetadataConversionException

All Implemented Interfaces:
Serializable

@Deprecated public class MetadataConversionException extends RuntimeException
Deprecated.
This system is extremely misleading and does not cleanup values for metadatable entities that have been removed. It is recommended that when wanting persistent metadata, you use PersistentDataContainer.

If you want temporary values on an entity, use the entity lifecycle events and a Map of your own. (See EntityAddToWorldEvent and EntityRemoveFromWorldEvent)

A MetadataConversionException is thrown any time a LazyMetadataValue attempts to convert a metadata value to an inappropriate data type.
See Also: