Package net.minecraft.command
Interface ICommandSender
-
- All Known Implementing Classes:
AbstractClientPlayer
,EntityOtherPlayerMP
,EntityPlayer
,EntityPlayerSP
public interface ICommandSender
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChatMessage(IChatComponent var1)
+ Send a chat message to the CommandSenderboolean
canCommandSenderUseCommand(int var1, java.lang.String var2)
+ Returnstrue
if the CommandSender is allowed to execute the command,false
if notEntity
getCommandSenderEntity()
+ Returns the entity associated with the command sender.IChatComponent
getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chatWorld
getEntityWorld()
+ Get the world, if available.java.lang.String
getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")BlockPos
getPosition()
+ Get the position in the world.Vec3
getPositionVector()
+ Get the position vector.boolean
sendCommandFeedback()
+ Returns true if the command sender should be sent feedback about executed commands
-
-
-
Method Detail
-
getName
java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")
-
getDisplayName
IChatComponent getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chat
-
addChatMessage
void addChatMessage(IChatComponent var1)
+ Send a chat message to the CommandSender
-
canCommandSenderUseCommand
boolean canCommandSenderUseCommand(int var1, java.lang.String var2)
+ Returnstrue
if the CommandSender is allowed to execute the command,false
if not
-
getPosition
BlockPos getPosition()
+ Get the position in the world.null
is not allowed! If you are not an entity in the world, return the coordinates 0, 0, 0
-
getPositionVector
Vec3 getPositionVector()
+ Get the position vector.null
is not allowed! If you are not an entity in the world, return 0.0D, 0.0D, 0.0D
-
getEntityWorld
World getEntityWorld()
+ Get the world, if available.null
is not allowed! If you are not an entity in the world, return the overworld
-
getCommandSenderEntity
Entity getCommandSenderEntity()
+ Returns the entity associated with the command sender. MAY BE NULL!
-
sendCommandFeedback
boolean sendCommandFeedback()
+ Returns true if the command sender should be sent feedback about executed commands
-
-