Interface DataValue<T>

Type Parameters:
T - Type of the value.
All Known Implementing Classes:
BooleanDataValue, BuiltDataValue, DoubleDataValue, GroupsDataValue, NumberDataValue, StringDataValue, TableDataValue

public interface DataValue<T>
Represents a value given to ExtensionDataBuilder.

Please do not implement this class, it is an implementation detail. Obtain instances with ValueBuilder.

  • Method Details

    • getValue

      T getValue()
    • getInformation

      <M> M getInformation(Class<M> ofType)
    • getMetadata

      default <I extends DataValue<T>> Optional<I> getMetadata(Class<I> metadataType)