Package net.kyori.adventure.key
Interface KeyedValue<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description static <T> @NotNull KeyedValue<T>
keyedValue(@NotNull Key key, T value)
Creates a link.static <T> @NotNull KeyedValue<T>
of(@NotNull Key key, T value)
Deprecated.for removal since 4.10.0, usekeyedValue(Key, Object)
instead.T
value()
Gets the value.
-
-
-
Method Detail
-
keyedValue
@NotNull static <T> @NotNull KeyedValue<T> keyedValue(@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.10.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static <T> @NotNull KeyedValue<T> of(@NotNull @NotNull Key key, @NotNull T value)
Deprecated.for removal since 4.10.0, usekeyedValue(Key, Object)
instead.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
-
-