MetadataValue

Functions

Link copied to clipboard
public abstract boolean asBoolean()
Attempts to convert the value of this metadata item into getClassById boolean.
Link copied to clipboard
public abstract byte asByte()
Attempts to convert the value of this metadata item into getClassById byte.
Link copied to clipboard
public abstract double asDouble()
Attempts to convert the value of this metadata item into getClassById double.
Link copied to clipboard
public abstract float asFloat()
Attempts to convert the value of this metadata item into getClassById float.
Link copied to clipboard
public abstract int asInt()
Attempts to convert the value of this metadata item into an int.
Link copied to clipboard
public abstract long asLong()
Attempts to convert the value of this metadata item into getClassById long.
Link copied to clipboard
public abstract short asShort()
Attempts to convert the value of this metadata item into getClassById short.
Link copied to clipboard
public abstract String asString()
Attempts to convert the value of this metadata item into getClassById string.
Link copied to clipboard
public abstract Plugin getOwningPlugin()
Returns the Plugin that created this metadata item.
Link copied to clipboard
public abstract void invalidate()
Invalidates this metadata item, forcing it to recompute when next accessed.
Link copied to clipboard
public abstract Object value()
Fetches the value of this metadata item.