类 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.

  • 构造器详细资料

    • FixedMetadataValue

      public FixedMetadataValue(Plugin owningPlugin, Object value)
      Initializes a FixedMetadataValue with an Object
      参数:
      owningPlugin - the Plugin that created this metadata value
      value - the value assigned to this metadata value
  • 方法详细资料