Class AsyncTabCompleteListener
- java.lang.Object
-
- com.github.siroshun09.mccommand.paper.listener.AsyncTabCompleteListener
-
- All Implemented Interfaces:
Listener
public class AsyncTabCompleteListener extends Object implements Listener
A class that enables asynchronous tab completion.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onTabCompletion(@NotNull AsyncTabCompleteEvent event)
The method called when theAsyncTabCompleteEvent
is fired.static @NotNull AsyncTabCompleteListener
register(@NotNull Plugin plugin, @NotNull Command command)
Enables asynchronous tab completion.void
unregister()
Unregisters this listener.
-
-
-
Method Detail
-
register
@NotNull public static @NotNull AsyncTabCompleteListener register(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Command command)
Enables asynchronous tab completion.- Parameters:
plugin
- the plugin to register the listenercommand
- theCommand
for asynchronous tab completion- Returns:
- the listener of
AsyncTabCompleteEvent
-
unregister
public void unregister()
Unregisters this listener.
-
onTabCompletion
public void onTabCompletion(@NotNull @NotNull AsyncTabCompleteEvent event)
The method called when theAsyncTabCompleteEvent
is fired.- Parameters:
event
- theAsyncTabCompleteEvent
-
-