public class EntityCommandSource extends Object implements CommandSource
CommandSource where the sender is an Entity.
createSource| Constructor and Description |
|---|
EntityCommandSource(org.bukkit.entity.Entity sender)
Creates a new
EntityCommandSource with the internal sender of sender. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.datasiqn.resultapi.Result<org.bukkit.entity.Entity,String> |
getEntityChecked()
Same as
CommandSource.getEntity(), except checks if the sender is an entity and returns a Result |
@NotNull com.datasiqn.resultapi.Result<LocatableCommandSender,String> |
getLocatableChecked()
Same as
CommandSource.getLocatable(), except checks if the sender is locatable and returns a Result |
@NotNull org.bukkit.command.CommandSender |
getSender()
Gets the sender of the command
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlock, getBlockChecked, getEntity, getLocatable, getPlayer, getPlayerChecked, hasPermission, hasPermission, sendMessagepublic EntityCommandSource(org.bukkit.entity.Entity sender)
EntityCommandSource with the internal sender of sender.
createSourcesender - The sender@NotNull public @NotNull com.datasiqn.resultapi.Result<org.bukkit.entity.Entity,String> getEntityChecked()
CommandSourceCommandSource.getEntity(), except checks if the sender is an entity and returns a ResultgetEntityChecked in interface CommandSourcerequiresEntity, use CommandSource.getEntity() instead@NotNull public @NotNull com.datasiqn.resultapi.Result<LocatableCommandSender,String> getLocatableChecked()
CommandSourceCommandSource.getLocatable(), except checks if the sender is locatable and returns a ResultgetLocatableChecked in interface CommandSourceCommandLink.requiresLocatable() requiresCommandBlock}, use CommandSource.getLocatable() instead@NotNull public @NotNull org.bukkit.command.CommandSender getSender()
CommandSourcegetSender in interface CommandSourceCopyright © 2024. All rights reserved.