Package net.kyori.adventure.pointer
Interface PointersSupplier.Builder<T>
- Type Parameters:
T
- the type to supply pointers for
- All Superinterfaces:
AbstractBuilder<PointersSupplier<T>>
- Enclosing interface:
- PointersSupplier<T>
A builder for
PointersSupplier
.- Since:
- 4.17.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull PointersSupplier.Builder<T>
parent
(@Nullable PointersSupplier<? super T> parent) Sets (or removes, ifnull
) the parent pointer supplier that will be used to resolve pointers that are not supplied by this supplier.<P> @NotNull PointersSupplier.Builder<T>
Adds a resolver for a given pointer.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
Method Details
-
parent
@Contract("_ -> this") @NotNull @NotNull PointersSupplier.Builder<T> parent(@Nullable @Nullable PointersSupplier<? super T> parent) Sets (or removes, ifnull
) the parent pointer supplier that will be used to resolve pointers that are not supplied by this supplier.- Parameters:
parent
- the parent- Returns:
- this builder
- Since:
- 4.17.0
-
resolving
@Contract("_, _ -> this") @NotNull <P> @NotNull PointersSupplier.Builder<T> resolving(@NotNull @NotNull Pointer<P> pointer, @NotNull @NotNull Function<T, P> resolver) Adds a resolver for a given pointer.- Type Parameters:
P
- the type of the pointer- Parameters:
pointer
- the pointerresolver
- the resolver- Returns:
- this builder
- Since:
- 4.17.0
-