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

Public Member Functions

Object value ()
 
int asInt ()
 
float asFloat ()
 
double asDouble ()
 
long asLong ()
 
short asShort ()
 
byte asByte ()
 
boolean asBoolean ()
 
String asString ()
 
Plugin getOwningPlugin ()
 
void invalidate ()
 

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.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

Referenced by org.bukkit.metadata.MetadataValueAdapterTest.testBooleanConversion().

byte org.bukkit.metadata.MetadataValue.asByte ( )

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

Returns
the value as a byte.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

double org.bukkit.metadata.MetadataValue.asDouble ( )

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

Returns
the value as a double.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

float org.bukkit.metadata.MetadataValue.asFloat ( )

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

Returns
the value as a float.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

int org.bukkit.metadata.MetadataValue.asInt ( )

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

Returns
the value as an int.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

long org.bukkit.metadata.MetadataValue.asLong ( )

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

Returns
the value as a long.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

short org.bukkit.metadata.MetadataValue.asShort ( )

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

Returns
the value as a short.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

String org.bukkit.metadata.MetadataValue.asString ( )

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

Returns
the value as a string.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

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.

Implemented in org.bukkit.metadata.MetadataValueAdapter.

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

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

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

Implemented in org.bukkit.metadata.LazyMetadataValue, and org.bukkit.metadata.FixedMetadataValue.


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