Package dev.jorel.commandapi.executors
Interface EntityResultingExecutionInfo
- All Superinterfaces:
ResultingExecutor<org.bukkit.entity.Entity,,BukkitEntity> TypedExecutor<org.bukkit.entity.Entity,BukkitEntity>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface EntityResultingExecutionInfo
extends ResultingExecutor<org.bukkit.entity.Entity,BukkitEntity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExecutorTypegetType()Returns the type of the sender of the current executor.intrun(ExecutionInfo<org.bukkit.entity.Entity, BukkitEntity> info) The code to run when this command is performedMethods inherited from interface dev.jorel.commandapi.executors.ResultingExecutor
executeWith
-
Method Details
-
run
int run(ExecutionInfo<org.bukkit.entity.Entity, BukkitEntity> info) throws WrapperCommandSyntaxExceptionThe code to run when this command is performed- Specified by:
runin interfaceResultingExecutor<org.bukkit.entity.Entity,BukkitEntity> - Parameters:
info- The ExecutionInfo for this command- Returns:
- the result of this command
- Throws:
WrapperCommandSyntaxException
-
getType
Returns the type of the sender of the current executor.- Specified by:
getTypein interfaceTypedExecutor<org.bukkit.entity.Entity,BukkitEntity> - Returns:
- the type of the sender of the current executor
-