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.
|
@Nullable Object value()
int asInt()
float asFloat()
double asDouble()
long asLong()
short asShort()
byte asByte()
boolean asBoolean()
@NotNull String asString()
@Nullable Plugin getOwningPlugin()
Plugin
that created this metadata item.void invalidate()
Copyright © 2022. All rights reserved.