类 FixedMetadataValue
java.lang.Object
org.bukkit.metadata.MetadataValueAdapter
org.bukkit.metadata.LazyMetadataValue
org.bukkit.metadata.FixedMetadataValue
- 所有已实现的接口:
MetadataValue
A FixedMetadataValue is a special case metadata item that contains the same
value forever after initialization. Invalidating a FixedMetadataValue has
no effect.
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.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.metadata.LazyMetadataValue
LazyMetadataValue.CacheStrategy
-
字段概要
从类继承的字段 org.bukkit.metadata.MetadataValueAdapter
owningPlugin
-
构造器概要
构造器说明FixedMetadataValue
(@NotNull Plugin owningPlugin, @Nullable Object value) Initializes a FixedMetadataValue with an Object -
方法概要
修饰符和类型方法说明void
Invalidates this metadata item, forcing it to recompute when next accessed.value()
Fetches the value of this metadata item.从类继承的方法 org.bukkit.metadata.MetadataValueAdapter
asBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, asString, getOwningPlugin
-
构造器详细资料
-
FixedMetadataValue
Initializes a FixedMetadataValue with an Object- 参数:
owningPlugin
- thePlugin
that created this metadata valuevalue
- the value assigned to this metadata value
-
-
方法详细资料
-
invalidate
public void invalidate()从接口复制的说明:MetadataValue
Invalidates this metadata item, forcing it to recompute when next accessed.- 指定者:
invalidate
在接口中MetadataValue
- 覆盖:
invalidate
在类中LazyMetadataValue
-
value
从接口复制的说明:MetadataValue
Fetches the value of this metadata item.- 指定者:
value
在接口中MetadataValue
- 覆盖:
value
在类中LazyMetadataValue
- 返回:
- the metadata value.
-