Interface DynamicTitle
- All Known Implementing Classes:
DynamicTitle.DynamicTitleImpl,DynamicTitle.InteractionDynamicTitle,DynamicTitle.PaginatedDynamicTitle
public interface DynamicTitle
Interface for handling dynamic titles in modals
Allows for titles to be updated based on the current state of the modal
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSimple implementation for creating dynamic titles with a functionstatic classImplementation for updating titles based on item interactionsstatic classData class for interaction statestatic classImplementation for paginated modals that shows current page / total pagesstatic classData class for pagination state -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.ComponentGet the current dynamic title based on modal state@NotNull net.kyori.adventure.text.ComponentUpdate the dynamic title with a new state object
-
Method Details
-
getDynamicTitle
@NotNull @NotNull net.kyori.adventure.text.Component getDynamicTitle()Get the current dynamic title based on modal state- Returns:
- Current component title
-
update
Update the dynamic title with a new state object- Parameters:
state- Object containing state information for the update- Returns:
- Updated component title
-