Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.metadata.MetadataValue Interface Reference
+ Inheritance diagram for org.bukkit.metadata.MetadataValue:

Public Member Functions

Object value ()
 Fetches the value of this metadata item.
 
int asInt ()
 Attempts to convert the value of this metadata item into an int.
 
float asFloat ()
 Attempts to convert the value of this metadata item into a float.
 
double asDouble ()
 Attempts to convert the value of this metadata item into a double.
 
long asLong ()
 Attempts to convert the value of this metadata item into a long.
 
short asShort ()
 Attempts to convert the value of this metadata item into a short.
 
byte asByte ()
 Attempts to convert the value of this metadata item into a byte.
 
boolean asBoolean ()
 Attempts to convert the value of this metadata item into a boolean.
 
String asString ()
 Attempts to convert the value of this metadata item into a string.
 
Plugin getOwningPlugin ()
 Returns the Plugin that created this metadata item.
 
void invalidate ()
 Invalidates this metadata item, forcing it to recompute when next accessed.
 

Detailed Description

Definition at line 5 of file MetadataValue.java.

Member Function Documentation

boolean org.bukkit.metadata.MetadataValue.asBoolean ( )

Attempts to convert the value of this metadata item into a boolean.

Returns
the value as a boolean.
byte org.bukkit.metadata.MetadataValue.asByte ( )

Attempts to convert the value of this metadata item into a byte.

Returns
the value as a byte.
double org.bukkit.metadata.MetadataValue.asDouble ( )

Attempts to convert the value of this metadata item into a double.

Returns
the value as a double.
float org.bukkit.metadata.MetadataValue.asFloat ( )

Attempts to convert the value of this metadata item into a float.

Returns
the value as a float.
int org.bukkit.metadata.MetadataValue.asInt ( )

Attempts to convert the value of this metadata item into an int.

Returns
the value as an int.
long org.bukkit.metadata.MetadataValue.asLong ( )

Attempts to convert the value of this metadata item into a long.

Returns
the value as a long.
short org.bukkit.metadata.MetadataValue.asShort ( )

Attempts to convert the value of this metadata item into a short.

Returns
the value as a short.
String org.bukkit.metadata.MetadataValue.asString ( )

Attempts to convert the value of this metadata item into a string.

Returns
the value as a string.
Plugin org.bukkit.metadata.MetadataValue.getOwningPlugin ( )

Returns the Plugin that created this metadata item.

Returns
the plugin that owns this metadata value. This should never be null.

Referenced by org.bukkit.metadata.MetadataStoreBase< T >.setMetadata().

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

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

Object org.bukkit.metadata.MetadataValue.value ( )

Fetches the value of this metadata item.

Returns
the metadata value.

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