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.
|
@NotNull String |
asString()
Attempts to convert the value of this metadata item into a string.
|
@Nullable Plugin |
getOwningPlugin()
Returns the
Plugin that created this metadata item. |
void |
invalidate()
Invalidates this metadata item, forcing it to recompute when next
accessed.
|
@Nullable Object |
value()
Fetches the value of this metadata item.
|
@Nullable @Nullable Object value()
int asInt()
float asFloat()
double asDouble()
long asLong()
short asShort()
byte asByte()
boolean asBoolean()
@NotNull @NotNull String asString()
@Nullable @Nullable Plugin getOwningPlugin()
Plugin
that created this metadata item.void invalidate()
Copyright © 2021. All rights reserved.