Package net.kyori.adventure.text.event
Interface ClickCallback.Options
- All Superinterfaces:
 net.kyori.examination.Examinable
- Enclosing interface:
 - ClickCallback<T extends Audience>
 
@NonExtendable
public static interface ClickCallback.Options
extends net.kyori.examination.Examinable
Options to configure how a callback can be executed.
- Since:
 - 4.13.0
 
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for callback options. - 
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ClickCallback.Options.Builderbuilder()Create a new builder.static @NotNull ClickCallback.Options.Builderbuilder(@NotNull ClickCallback.Options existing) Create a new builder populating from existing options.@NotNull Durationlifetime()How long this callback will last until it is made invalid.intuses()The number of times this callback can be executed.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine 
- 
Method Details
- 
builder
Create a new builder.- Returns:
 - the new builder
 - Since:
 - 4.13.0
 
 - 
builder
@NotNull static @NotNull ClickCallback.Options.Builder builder(@NotNull @NotNull ClickCallback.Options existing) Create a new builder populating from existing options.- Parameters:
 existing- the existing options to populate this builder with- Returns:
 - the new builder
 - Since:
 - 4.13.0
 
 - 
uses
int uses()The number of times this callback can be executed.By default callbacks are single-use.
- Returns:
 - allowable use count, or 
ClickCallback.UNLIMITED_USES - Since:
 - 4.13.0
 
 - 
lifetime
How long this callback will last until it is made invalid.By default callbacks last the value of
ClickCallback.DEFAULT_LIFETIME.- Returns:
 - the duration of this callback
 - Since:
 - 4.13.0
 
 
 -