Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.metadata.FixedMetadataValue Class Reference
Inheritance diagram for org.bukkit.metadata.FixedMetadataValue:
org.bukkit.metadata.LazyMetadataValue org.bukkit.metadata.MetadataValueAdapter org.bukkit.metadata.MetadataValue org.bukkit.metadata.MetadataValue

Public Member Functions

 FixedMetadataValue (Plugin owningPlugin, final Object value)
 
void invalidate ()
 
Object value ()
 

Additional Inherited Members

Detailed Description

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.

Definition at line 16 of file FixedMetadataValue.java.

Constructor & Destructor Documentation

org.bukkit.metadata.FixedMetadataValue.FixedMetadataValue ( Plugin  owningPlugin,
final Object  value 
)

Initializes a FixedMetadataValue with an Object

Parameters
owningPluginthe Plugin that created this metadata value
valuethe value assigned to this metadata value

Definition at line 29 of file FixedMetadataValue.java.

References org.bukkit.metadata.FixedMetadataValue.value().

29  {
30  super(owningPlugin);
31  this.internalValue = value;
32  }

Member Function Documentation

void org.bukkit.metadata.FixedMetadataValue.invalidate ( )

Invalidates this metadata item, forcing it to recompute when next accessed.

Implements org.bukkit.metadata.MetadataValue.

Definition at line 35 of file FixedMetadataValue.java.

35  {
36 
37  }
Object org.bukkit.metadata.FixedMetadataValue.value ( )

Fetches the value of this metadata item.

Returns
the metadata value.

Implements org.bukkit.metadata.MetadataValue.

Definition at line 40 of file FixedMetadataValue.java.

Referenced by org.bukkit.metadata.FixedMetadataValue.FixedMetadataValue().

40  {
41  return internalValue;
42  }

The documentation for this class was generated from the following file: