public interface MetadataValue
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
Attempts to convert the value of this metadata item into a boolean.
|
byte |
asByte()
Attempts to convert the value of this metadata item into a byte.
|
double |
asDouble()
Attempts to convert the value of this metadata item into a double.
|
float |
asFloat()
Attempts to convert the value of this metadata item into a float.
|
int |
asInt()
Attempts to convert the value of this metadata item into an int.
|
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.
|
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.
|
Object |
value()
Fetches the value of this metadata item.
|
Object value()
int asInt()
float asFloat()
double asDouble()
long asLong()
short asShort()
byte asByte()
boolean asBoolean()
String asString()
Plugin getOwningPlugin()
Plugin
that created this metadata item.void invalidate()
Copyright © 2021. All rights reserved.