public class BlockCommandSource extends Object implements CommandSource
CommandSource where the sender is a BlockCommandSender
createSource| Constructor and Description |
|---|
BlockCommandSource(org.bukkit.command.BlockCommandSender sender)
Creates a new
BlockCommandSource with the internal sender of sender. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.datasiqn.resultapi.Result<org.bukkit.command.BlockCommandSender,String> |
getBlockChecked()
Same as
CommandSource.getBlock(), except checks if the sender is a command block 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, getEntity, getEntityChecked, getLocatable, getPlayer, getPlayerChecked, hasPermission, hasPermission, sendMessagepublic BlockCommandSource(org.bukkit.command.BlockCommandSender sender)
BlockCommandSource with the internal sender of sender.
createSourcesender - The BlockCommandSender to internally use@NotNull public @NotNull com.datasiqn.resultapi.Result<org.bukkit.command.BlockCommandSender,String> getBlockChecked()
CommandSourceCommandSource.getBlock(), except checks if the sender is a command block and returns a ResultgetBlockChecked in interface CommandSourceCommandLink.requiresBlock() requiresCommandBlock}, use CommandSource.getBlock() 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.