Package net.kyori.adventure.key
Interface KeyedValue<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> @NotNull KeyedValue<T>
of(@NotNull Key key, T value)
Creates a link.T
value()
Gets the value.
-
-
-
Method Detail
-
of
@NotNull static <T> @NotNull KeyedValue<T> of(@NotNull @NotNull Key key, @NotNull T value)
Creates a link.- Type Parameters:
T
- the value type- Parameters:
key
- the keyvalue
- the value- Returns:
- the keyed
- Since:
- 4.0.0
-
value
@NotNull T value()
Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
-