Class FixedMetadataValue

All Implemented Interfaces:
MetadataValue

@Deprecated public class FixedMetadataValue extends LazyMetadataValue
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 FixedMetadataValue is a special case metadata item that contains the same value forever after initialization. Invalidating a FixedMetadataValue has no effect.

This class extends LazyMetadataValue for historical reasons, even though it overrides all the implementation methods. it is possible that in the future that the inheritance hierarchy may change.