Package net.kyori.adventure.key
Interface KeyedValue<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
Keyed
A
T value with an associated Key.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NotNull KeyedValue<T>keyedValue(@NotNull Key key, T value) Creates a link.static <T> @NotNull KeyedValue<T>Deprecated.value()Gets the value.
-
Method Details
-
keyedValue
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
Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
keyedValue(Key, Object)instead.