![]() |
Bukkit
1.4.7-R1.0
|
A FixedMetadataValue is a special case metadata item that contains the same value forever after initialization. More...
Inheritance diagram for org.bukkit.metadata.FixedMetadataValue:
Collaboration diagram for org.bukkit.metadata.FixedMetadataValue:Public Member Functions | |
| FixedMetadataValue (Plugin owningPlugin, final Object value) | |
| Initializes a FixedMetadataValue with an Object. | |
Public Member Functions inherited from org.bukkit.metadata.LazyMetadataValue | |
| LazyMetadataValue (Plugin owningPlugin, Callable< Object > lazyValue) | |
| Initialized a LazyMetadataValue object with the default CACHE_AFTER_FIRST_EVAL cache strategy. | |
| LazyMetadataValue (Plugin owningPlugin, CacheStrategy cacheStrategy, Callable< Object > lazyValue) | |
| Initializes a LazyMetadataValue object with a specific cache strategy. | |
| Plugin | getOwningPlugin () |
| Object | value () |
| int | asInt () |
| float | asFloat () |
| double | asDouble () |
| long | asLong () |
| short | asShort () |
| byte | asByte () |
| boolean | asBoolean () |
| String | asString () |
| synchronized void | invalidate () |
Public Member Functions inherited from org.bukkit.metadata.MetadataValue | |
| 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. | |
A FixedMetadataValue is a special case metadata item that contains the same value forever after initialization.
Invalidating a FixedMetadataValue has no affect.
Definition at line 11 of file FixedMetadataValue.java.
| org.bukkit.metadata.FixedMetadataValue.FixedMetadataValue | ( | Plugin | owningPlugin, |
| final Object | value | ||
| ) |
Initializes a FixedMetadataValue with an Object.
| owningPlugin | the Plugin that created this metadata value. |
| value | the value assigned to this metadata value. |
Definition at line 18 of file FixedMetadataValue.java.
References org.bukkit.metadata.LazyMetadataValue.CacheStrategy.CACHE_ETERNALLY, and org.bukkit.metadata.LazyMetadataValue.value().