Interface CommandSource
- All Known Subinterfaces:
Damageable, Entity, LivingEntity, Mob, Player
public interface CommandSource
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionexecutor()Gets the entity that executes this command.location()Gets the location that this command is being executed at.sender()Gets theCommandSenderthat executed this command.server()Gets the server associated with this source.
-
Method Details
-
location
Location location()Gets the location that this command is being executed at.- Returns:
- a cloned location instance.
- Since:
- 0.1.0
-
sender
CommandSender sender()Gets theCommandSenderthat executed this command. The sender of a command is the one that triggered the execution of a command. It differs toexecutor()as the executor can be changed by a command, e.g. /execute.- Returns:
- the command sender instance
- Since:
- 0.1.0
-
executor
-
server
-