public interface ICommandSender
Modifier and Type | Method and Description |
---|---|
boolean |
canUseCommand(int permLevel,
java.lang.String commandName) |
default Entity |
getCommandSenderEntity() |
default ITextComponent |
getDisplayName() |
World |
getEntityWorld() |
java.lang.String |
getName() |
default BlockPos |
getPosition() |
default Vec3d |
getPositionVector() |
MinecraftServer |
getServer() |
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)
default BlockPos getPosition()
default Vec3d getPositionVector()
World getEntityWorld()
@Nullable default Entity getCommandSenderEntity()
default boolean sendCommandFeedback()
default void setCommandStat(CommandResultStats.Type type, int amount)
@Nullable MinecraftServer getServer()