Package me.ryun.plugintools
Class PluginCommands
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<org.bukkit.command.TabExecutor>
me.ryun.plugintools.PluginCommands
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<org.bukkit.command.TabExecutor>,Collection<org.bukkit.command.TabExecutor>,List<org.bukkit.command.TabExecutor>,RandomAccess
A call list for all of the
TabExecutor in the JavaPlugin- Author:
- SSS Ryun
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancall(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) Calls eachCommandExecutor.onCommand(CommandSender, Command, String, String[])by order and stops when one returns true, effectively prioritizing by orderbooleancallAll(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) Calls eachCommandExecutor.onCommand(CommandSender, Command, String, String[])by order without stoppingcompleteTab(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args) Calls eachTabCompleter.onTabComplete(CommandSender, Command, String, String[])by order and stops when one returns values, effectively prioritizing by ordercompleteTabAll(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args) Calls eachTabCompleter.onTabComplete(CommandSender, Command, String, String[])by order without stoppingMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
PluginCommands
public PluginCommands()
-
-
Method Details
-
call
public boolean call(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) Calls eachCommandExecutor.onCommand(CommandSender, Command, String, String[])by order and stops when one returns true, effectively prioritizing by order -
callAll
public boolean callAll(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) Calls eachCommandExecutor.onCommand(CommandSender, Command, String, String[])by order without stopping -
completeTab
@Nullable public @Nullable List<String> completeTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) Calls eachTabCompleter.onTabComplete(CommandSender, Command, String, String[])by order and stops when one returns values, effectively prioritizing by order -
completeTabAll
@Nullable public @Nullable List<String> completeTabAll(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) Calls eachTabCompleter.onTabComplete(CommandSender, Command, String, String[])by order without stopping
-