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>
public static interface PointersSupplier.Builder<T> extends AbstractBuilder<PointersSupplier<T>>
A builder forPointersSupplier
.- Since:
- 4.17.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @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>
resolving(@NotNull Pointer<P> pointer, @NotNull java.util.function.Function<T,P> resolver)
Adds a resolver for a given pointer.-
Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
-
-
-
Method Detail
-
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 java.util.function.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
-
-