Class FixedMetadataValue

All Implemented Interfaces:

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.

  • Constructor Details

    • FixedMetadataValue

      public FixedMetadataValue(@NotNull Plugin owningPlugin, @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
  • Method Details