程序包 org.bukkit.metadata

# 类 FixedMetadataValue

java.lang.Object
org.bukkit.metadata.MetadataValueAdapter
org.bukkit.metadata.LazyMetadataValue
org.bukkit.metadata.FixedMetadataValue

所有已实现的接口:
  `MetadataValue`

public class FixedMetadataValue extends LazyMetadataValue
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`
  `invalidate()`
  Invalidates this metadata item, forcing it to recompute when next accessed.
  `@Nullable Object`
  `value()`
  Fetches the value of this metadata item.

  ### 从类继承的方法 org.bukkit.metadata.MetadataValueAdapter

  `asBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, asString, getOwningPlugin`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### FixedMetadataValue

    public FixedMetadataValue(@NotNull @NotNull Plugin owningPlugin, @Nullable @Nullable Object value)
    Initializes a FixedMetadataValue with an Object
    参数:
      `owningPlugin` - the `Plugin` that created this metadata value
      `value` - 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

    @Nullable public @Nullable Object value()
    从接口复制的说明: `MetadataValue`
    Fetches the value of this metadata item.
    指定者:
      `value` 在接口中 `MetadataValue`
    覆盖:
      `value` 在类中 `LazyMetadataValue`
    返回:
      the metadata value.