public interface ICommandSender
Modifier and Type | Method and Description |
---|---|
boolean |
canUseCommand(int permLevel,
java.lang.String commandName)
Returns
true if the CommandSender is allowed to execute the command, false if not |
default Entity |
getCommandSenderEntity() |
default ITextComponent |
getDisplayName() |
World |
getEntityWorld()
Get the world, if available.
|
java.lang.String |
getName()
Get the name of this object.
|
default BlockPos |
getPosition() |
default Vec3d |
getPositionVector() |
MinecraftServer |
getServer()
Get the Minecraft server instance
|
default boolean |
sendCommandFeedback() |
default void |
sendMessage(ITextComponent component) |
default void |
setCommandStat(CommandResultStats.Type type,
int amount) |
java.lang.String getName()
default ITextComponent getDisplayName()
default void sendMessage(ITextComponent component)
boolean canUseCommand(int permLevel, java.lang.String commandName)
true
if the CommandSender is allowed to execute the command, false
if notdefault BlockPos getPosition()
default Vec3d getPositionVector()
World getEntityWorld()
null
is not allowed! If you are not an entity in the world, return
the overworlddefault Entity getCommandSenderEntity()
default boolean sendCommandFeedback()
default void setCommandStat(CommandResultStats.Type type, int amount)
MinecraftServer getServer()