Package org.bukkit.metadata
Class FixedMetadataValue
java.lang.Object
org.bukkit.metadata.MetadataValueAdapter
org.bukkit.metadata.LazyMetadataValue
org.bukkit.metadata.FixedMetadataValue
- All Implemented Interfaces:
- MetadataValue
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.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.metadata.LazyMetadataValueLazyMetadataValue.CacheStrategy
- 
Field SummaryFields inherited from class org.bukkit.metadata.MetadataValueAdapterowningPlugin
- 
Constructor SummaryConstructorsConstructorDescriptionFixedMetadataValue(Plugin owningPlugin, Object value) Initializes a FixedMetadataValue with an Object
- 
Method SummaryModifier and TypeMethodDescriptionvoidInvalidates this metadata item, forcing it to recompute when next accessed.value()Fetches the value of this metadata item.Methods inherited from class org.bukkit.metadata.MetadataValueAdapterasBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, asString, getOwningPlugin
- 
Constructor Details- 
FixedMetadataValueInitializes a FixedMetadataValue with an Object- Parameters:
- owningPlugin- the- Pluginthat created this metadata value
- value- the value assigned to this metadata value
 
 
- 
- 
Method Details- 
invalidatepublic void invalidate()Description copied from interface:MetadataValueInvalidates this metadata item, forcing it to recompute when next accessed.- Specified by:
- invalidatein interface- MetadataValue
- Overrides:
- invalidatein class- LazyMetadataValue
 
- 
valueDescription copied from interface:MetadataValueFetches the value of this metadata item.- Specified by:
- valuein interface- MetadataValue
- Overrides:
- valuein class- LazyMetadataValue
- Returns:
- the metadata value.
 
 
-