MetadataValue
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.CacheStrategy
owningPlugin
Constructor | Description |
---|---|
FixedMetadataValue(@NotNull Plugin owningPlugin,
@Nullable Object value) |
Initializes a FixedMetadataValue with an Object
|
Modifier and Type | Method | Description |
---|---|---|
void |
invalidate() |
Invalidates this metadata item, forcing it to recompute when next
accessed.
|
@Nullable Object |
value() |
Fetches the value of this metadata item.
|
asBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, asString, getOwningPlugin
public void invalidate()
MetadataValue
invalidate
in interface MetadataValue
invalidate
in class LazyMetadataValue
@Nullable public @Nullable Object value()
MetadataValue
value
in interface MetadataValue
value
in class LazyMetadataValue
Copyright © 2020. All rights reserved.