Package net.kyori.adventure.pointer
Interface Pointers.Builder
- 
- All Superinterfaces:
 AbstractBuilder<Pointers>,Buildable.Builder<Pointers>
- Enclosing interface:
 - Pointers
 
public static interface Pointers.Builder extends AbstractBuilder<Pointers>, Buildable.Builder<Pointers>
A builder of pointers.- Since:
 - 4.8.0
 - See Also:
 Pointers
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> @NotNull Pointers.BuilderwithDynamic(@NotNull Pointer<T> pointer, @NotNull java.util.function.Supplier<@Nullable T> value)Adds a pointer with a dynamic value provided by a supplier.default <T> @NotNull Pointers.BuilderwithStatic(@NotNull Pointer<T> pointer, T value)Adds a pointer with a static, optional value.- 
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build 
 - 
 
 - 
 
- 
- 
Method Detail
- 
withStatic
@Contract("_, _ -> this") @NotNull default <T> @NotNull Pointers.Builder withStatic(@NotNull @NotNull Pointer<T> pointer, @Nullable T value)Adds a pointer with a static, optional value.- Type Parameters:
 T- the type- Parameters:
 pointer- the pointervalue- the optional value- Returns:
 - this builder
 - Since:
 - 4.8.0
 
 
- 
withDynamic
@Contract("_, _ -> this") @NotNull <T> @NotNull Pointers.Builder withDynamic(@NotNull @NotNull Pointer<T> pointer, @NotNull @NotNull java.util.function.Supplier<@Nullable T> value)Adds a pointer with a dynamic value provided by a supplier.- Type Parameters:
 T- the type- Parameters:
 pointer- the pointervalue- the value supplier- Returns:
 - this builder
 - Since:
 - 4.8.0
 
 
 - 
 
 -