Package net.kyori.adventure.text.event
Interface ClickCallback.Options.Builder
-
- All Superinterfaces:
AbstractBuilder<ClickCallback.Options>
- Enclosing interface:
- ClickCallback.Options
@NonExtendable public static interface ClickCallback.Options.Builder extends AbstractBuilder<ClickCallback.Options>
A builder for callback options.- Since:
- 4.13.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ClickCallback.Options.Builder
lifetime(@NotNull java.time.temporal.TemporalAmount duration)
Set how long the callback should last from sending.@NotNull ClickCallback.Options.Builder
uses(int useCount)
Set the number of uses allowed for this callback.-
Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
-
-
-
Method Detail
-
uses
@NotNull @NotNull ClickCallback.Options.Builder uses(int useCount)
Set the number of uses allowed for this callback.- Parameters:
useCount
- the number of allowed uses, orClickCallback.UNLIMITED_USES
- Returns:
- this builder
- Since:
- 4.13.0
-
lifetime
@NotNull @NotNull ClickCallback.Options.Builder lifetime(@NotNull @NotNull java.time.temporal.TemporalAmount duration)
Set how long the callback should last from sending.- Parameters:
duration
- the duration of this callback, from the time it is sent- Returns:
- this builder
- Since:
- 4.13.0
-
-