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 voidonTabCompletion(@NotNull AsyncTabCompleteEvent event)The method called when theAsyncTabCompleteEventis fired.static @NotNull AsyncTabCompleteListenerregister(@NotNull Plugin plugin, @NotNull Command command)Enables asynchronous tab completion.voidunregister()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- theCommandfor 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 theAsyncTabCompleteEventis fired.- Parameters:
event- theAsyncTabCompleteEvent
-
-