Interface Commodore
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidregister(com.mojang.brigadier.builder.LiteralArgumentBuilder<?> argumentBuilder) Registers the provided argument data to the dispatcher.voidregister(com.mojang.brigadier.tree.LiteralCommandNode<?> node) Registers the provided argument data to the dispatcher.default voidregister(org.bukkit.command.Command command, com.mojang.brigadier.builder.LiteralArgumentBuilder<?> argumentBuilder) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.default voidregister(org.bukkit.command.Command command, com.mojang.brigadier.builder.LiteralArgumentBuilder<?> argumentBuilder, Predicate<? super org.bukkit.entity.Player> permissionTest) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.default voidregister(org.bukkit.command.Command command, com.mojang.brigadier.tree.LiteralCommandNode<?> node) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.voidregister(org.bukkit.command.Command command, com.mojang.brigadier.tree.LiteralCommandNode<?> node, Predicate<? super org.bukkit.entity.Player> permissionTest) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.
-
Method Details
-
register
void register(org.bukkit.command.Command command, com.mojang.brigadier.tree.LiteralCommandNode<?> node, Predicate<? super org.bukkit.entity.Player> permissionTest) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.Additionally applies the CraftBukkit
SuggestionProviderto all arguments within the node, so ASK_SERVER suggestions can continue to function for the command.Players will only be sent argument data if they pass the provided
permissionTest.- Parameters:
command- the command to read aliases fromnode- the argument datapermissionTest- the predicate to check whether players should be sent argument data
-
register
default void register(org.bukkit.command.Command command, com.mojang.brigadier.builder.LiteralArgumentBuilder<?> argumentBuilder, Predicate<? super org.bukkit.entity.Player> permissionTest) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.Additionally applies the CraftBukkit
SuggestionProviderto all arguments within the node, so ASK_SERVER suggestions can continue to function for the command.Players will only be sent argument data if they pass the provided
permissionTest.- Parameters:
command- the command to read aliases fromargumentBuilder- the argument data, in a builder formpermissionTest- the predicate to check whether players should be sent argument data
-
register
default void register(org.bukkit.command.Command command, com.mojang.brigadier.tree.LiteralCommandNode<?> node) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.Additionally applies the CraftBukkit
SuggestionProviderto all arguments within the node, so ASK_SERVER suggestions can continue to function for the command.- Parameters:
command- the command to read aliases fromnode- the argument data
-
register
default void register(org.bukkit.command.Command command, com.mojang.brigadier.builder.LiteralArgumentBuilder<?> argumentBuilder) Registers the provided argument data to the dispatcher, against all aliases defined for thecommand.Additionally applies the CraftBukkit
SuggestionProviderto all arguments within the node, so ASK_SERVER suggestions can continue to function for the command.- Parameters:
command- the command to read aliases fromargumentBuilder- the argument data, in a builder form
-
register
void register(com.mojang.brigadier.tree.LiteralCommandNode<?> node) Registers the provided argument data to the dispatcher.Equivalent to calling
CommandDispatcher.register(LiteralArgumentBuilder).Prefer using
register(Command, LiteralCommandNode).- Parameters:
node- the argument data
-
register
default void register(com.mojang.brigadier.builder.LiteralArgumentBuilder<?> argumentBuilder) Registers the provided argument data to the dispatcher.Equivalent to calling
CommandDispatcher.register(LiteralArgumentBuilder).Prefer using
register(Command, LiteralArgumentBuilder).- Parameters:
argumentBuilder- the argument data
-