Package net.kyori.adventure.pointer
Interface Pointer<V>
- Type Parameters:
V
- the value type
- All Superinterfaces:
net.kyori.examination.Examinable
public interface Pointer<V>
extends net.kyori.examination.Examinable
A pointer to a resource.
- Since:
- 4.8.0
-
Method Summary
Modifier and Type Method Description default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
examinableProperties()
@NotNull net.kyori.adventure.key.Key
key()
Gets the key.static <V> @NotNull Pointer<V>
pointer(@NotNull Class<V> type, @NotNull net.kyori.adventure.key.Key key)
Creates a pointer.@NotNull Class<V>
type()
Gets the value type.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Method Details
-
pointer
@NotNull static <V> @NotNull Pointer<V> pointer(@NotNull @NotNull Class<V> type, @NotNull @NotNull net.kyori.adventure.key.Key key)Creates a pointer.- Type Parameters:
V
- the value type- Parameters:
type
- the value typekey
- the key- Returns:
- the pointer
- Since:
- 4.8.0
-
type
Gets the value type.- Returns:
- the value type
- Since:
- 4.8.0
-
key
@NotNull @NotNull net.kyori.adventure.key.Key key()Gets the key.- Returns:
- the key
- Since:
- 4.8.0
-
examinableProperties
@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-