Class MenuEntry<Component extends ActionComponent, Event extends ComponentInteraction>
java.lang.Object
de.chojo.jdautil.menus.entries.MenuEntry<Component, Event>
- Direct Known Subclasses:
ButtonEntry, EntitySelectMenuEntry, StringSelectMenuEntry
public abstract class MenuEntry<Component extends ActionComponent, Event extends ComponentInteraction>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ActionRowChildComponentcomponent(long id, LocalizationContext localizer) voidhidden()id()voidinvoke(EntryContext<Event, Component> event) static MenuEntry<?, ?> of(Button component, Consumer<EntryContext<ButtonInteractionEvent, Button>> eventConsumer) static MenuEntry<?, ?> of(EntitySelectMenu component, Consumer<EntryContext<EntitySelectInteractionEvent, EntitySelectMenu>> eventConsumer) static MenuEntry<?, ?> of(StringSelectMenu component, Consumer<EntryContext<StringSelectInteractionEvent, StringSelectMenu>> eventConsumer) type()booleanvisible()visible(boolean visible)
-
Constructor Details
-
MenuEntry
-
-
Method Details
-
component
-
of
public static MenuEntry<?,?> of(Button component, Consumer<EntryContext<ButtonInteractionEvent, Button>> eventConsumer) -
of
public static MenuEntry<?,?> of(StringSelectMenu component, Consumer<EntryContext<StringSelectInteractionEvent, StringSelectMenu>> eventConsumer) -
of
public static MenuEntry<?,?> of(EntitySelectMenu component, Consumer<EntryContext<EntitySelectInteractionEvent, EntitySelectMenu>> eventConsumer) -
component
-
component
-
eventConsumer
-
id
-
type
-
visible
-
visible
public boolean visible()
-