public class FixedMetadataValue extends LazyMetadataValue
This class extends LazyMetadataValue for historical reasons, even though it overrides all the implementation methods. it is possible that in the future that the inheritance hierarchy may change.
LazyMetadataValue.CacheStrategyowningPlugin| 构造器和说明 |
|---|
FixedMetadataValue(Plugin owningPlugin,
java.lang.Object value)
Initializes a FixedMetadataValue with an Object
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
invalidate()
Invalidates this metadata item, forcing it to recompute when next
accessed.
|
java.lang.Object |
value()
Fetches the value of this metadata item.
|
asBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, asString, getOwningPluginpublic void invalidate()
MetadataValueinvalidate 在接口中 MetadataValueinvalidate 在类中 LazyMetadataValuepublic java.lang.Object value()
MetadataValuevalue 在接口中 MetadataValuevalue 在类中 LazyMetadataValue