net.minecraft.command

## Interface ICommandSender

- All Known Implementing Classes:
    DedicatedServer, EntityClientPlayerMP, EntityOtherPlayerMP, EntityPlayer, EntityPlayerMP, EntityPlayerSP, FakePlayer, IntegratedServer, MinecraftServer, RConConsoleSource, TileEntityCommandBlock

      public interface ICommandSender

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `canCommandSenderUseCommand(int i, String s)` Returns true if the command sender is allowed to use the given command.
    `String` | `getCommandSenderName()` Gets the name of this command sender (usually username, but possibly "Rcon")
    `ChunkCoordinates` | `getPlayerCoordinates()` Return the position for this command sender.
    `void` | `sendChatToPlayer(String s)`
    `String` | `translateString(String s, Object... var2)` Translates and formats the given string key with the given arguments.

- - ### Method Detail

    - #### getCommandSenderName

          String getCommandSenderName()

      Gets the name of this command sender (usually username, but possibly "Rcon")

    - #### sendChatToPlayer

          void sendChatToPlayer(String s)

    - #### canCommandSenderUseCommand

          boolean canCommandSenderUseCommand(int i,
                                           String s)

      Returns true if the command sender is allowed to use the given command.

    - #### translateString

          String translateString(String s,
                               Object... var2)

      Translates and formats the given string key with the given arguments.

    - #### getPlayerCoordinates

          ChunkCoordinates getPlayerCoordinates()

      Return the position for this command sender.