Package net.kyori.adventure.key
Interface KeyedValue<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
Keyed
public interface KeyedValue<T> extends Keyed
A
T value with an associated Key.- Since:
- 4.0.0
-
Method Summary
Modifier and Type Method Description static <T> @NonNull KeyedValue<T>of(@NonNull Key key, @NonNull T value)Creates a link.@NonNull Tvalue()Gets the value.
-
Method Details
-
of
Creates a link.- Type Parameters:
T- the value type- Parameters:
key- the keyvalue- the value- Returns:
- the keyed
- Since:
- 4.0.0
-
value
@NonNull T value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-