Package dev.jorel.commandapi
Interface BukkitExecutable<Impl extends BukkitExecutable<Impl>>
- All Superinterfaces:
ChainableBuilder<Impl>,PlatformExecutable<Impl,org.bukkit.command.CommandSender>
- All Known Implementing Classes:
AdvancementArgument,AdventureChatArgument,AdventureChatColorArgument,AdventureChatComponentArgument,AngleArgument,Argument,AxisArgument,BiomeArgument,BiomeArgument.NamespacedKey,BlockPredicateArgument,BlockStateArgument,BooleanArgument,ChatArgument,ChatColorArgument,ChatComponentArgument,CommandAPICommand,CommandArgument,CommandTree,CustomArgument,DoubleArgument,EnchantmentArgument,EntitySelectorArgument.ManyEntities,EntitySelectorArgument.ManyPlayers,EntitySelectorArgument.OneEntity,EntitySelectorArgument.OnePlayer,EntityTypeArgument,FloatArgument,FloatRangeArgument,FunctionArgument,GreedyStringArgument,IntegerArgument,IntegerRangeArgument,ItemStackArgument,ItemStackPredicateArgument,ListArgument,ListArgumentCommon,ListTextArgument,LiteralArgument,Location2DArgument,LocationArgument,LongArgument,LootTableArgument,MapArgument,MathOperationArgument,MultiLiteralArgument,NamespacedKeyArgument,NBTCompoundArgument,ObjectiveArgument,ObjectiveCriteriaArgument,OfflinePlayerArgument,ParticleArgument,PlayerArgument,PotionEffectArgument,PotionEffectArgument.NamespacedKey,RecipeArgument,RotationArgument,SafeOverrideableArgument,ScoreboardSlotArgument,ScoreHolderArgument.Multiple,ScoreHolderArgument.Single,SoundArgument,SoundArgument.NamespacedKey,StringArgument,TeamArgument,TextArgument,TimeArgument,UUIDArgument,WorldArgument
public interface BukkitExecutable<Impl extends BukkitExecutable<Impl>>
extends PlatformExecutable<Impl,org.bukkit.command.CommandSender>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Implexecutes(CommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Implexecutes(CommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Implexecutes(ResultingCommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Implexecutes(ResultingCommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesConsole(ConsoleCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesEntity(EntityCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesEntity(EntityResultingCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesNative(NativeCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesNative(NativeResultingCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesPlayer(PlayerCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesPlayer(PlayerResultingCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesProxy(ProxyCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesProxy(ProxyResultingCommandExecutor executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplAdds an executor to the current command builderMethods inherited from interface dev.jorel.commandapi.ChainableBuilder
instanceMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutor
-
Method Details
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(CommandSender, Object[]) -> ()that will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(BukkitCommandExecutionInfo) -> ()that will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(CommandSender, CommandArguments) -> intthat will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(BukkitCommandExecutionInfo) -> intthat will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Player, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Player, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesEntity
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Entity, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesEntity
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesEntity
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Entity, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesEntity
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesProxy
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Entity, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesProxy
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesProxy
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Entity, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesProxy
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesCommandBlock
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(BlockCommandSender, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesCommandBlock
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesCommandBlock
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(BlockCommandSender, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesCommandBlock
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ConsoleCommandSender, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ConsoleCommandSender, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesNative
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(NativeCommandExecutor, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesNative
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesNative
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(NativeCommandExecutor, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesNative
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesRemoteConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(RemoteConsoleCommandExecutor, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesRemoteConsole
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesRemoteConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(RemoteConsoleResultingCommandExecutor, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesRemoteConsole
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesFeedbackForwarding
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(FeedbackForwardingCommandExecutor, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesFeedbackForwarding
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesFeedbackForwarding
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(FeedbackForwardingCommandExecutor, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesFeedbackForwarding
Adds an executor to the current command builder- Parameters:
info- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-