public class WrapperICommandSender extends Object implements net.minecraft.command.ICommandSender
Modifier and Type | Method and Description |
---|---|
void |
addChatMessage(net.minecraft.util.IChatComponent component) |
boolean |
canCommandSenderUseCommand(int permLevel,
String commandName) |
net.minecraft.entity.Entity |
getCommandSenderEntity() |
String |
getCommandSenderName() |
net.minecraft.util.IChatComponent |
getDisplayName() |
net.minecraft.world.World |
getEntityWorld() |
net.minecraft.util.BlockPos |
getPosition() |
net.minecraft.util.Vec3 |
getPositionVector() |
static net.minecraft.command.ICommandSender |
of(org.spongepowered.api.util.command.CommandSource source) |
boolean |
sendCommandFeedback() |
void |
setCommandStat(net.minecraft.command.CommandResultStats.Type type,
int amount) |
public String getCommandSenderName()
getCommandSenderName
in interface net.minecraft.command.ICommandSender
public net.minecraft.util.IChatComponent getDisplayName()
getDisplayName
in interface net.minecraft.command.ICommandSender
public void addChatMessage(net.minecraft.util.IChatComponent component)
addChatMessage
in interface net.minecraft.command.ICommandSender
public boolean canCommandSenderUseCommand(int permLevel, String commandName)
canCommandSenderUseCommand
in interface net.minecraft.command.ICommandSender
public net.minecraft.util.BlockPos getPosition()
getPosition
in interface net.minecraft.command.ICommandSender
public net.minecraft.util.Vec3 getPositionVector()
getPositionVector
in interface net.minecraft.command.ICommandSender
public net.minecraft.world.World getEntityWorld()
getEntityWorld
in interface net.minecraft.command.ICommandSender
public net.minecraft.entity.Entity getCommandSenderEntity()
getCommandSenderEntity
in interface net.minecraft.command.ICommandSender
public boolean sendCommandFeedback()
sendCommandFeedback
in interface net.minecraft.command.ICommandSender
public void setCommandStat(net.minecraft.command.CommandResultStats.Type type, int amount)
setCommandStat
in interface net.minecraft.command.ICommandSender
public static net.minecraft.command.ICommandSender of(org.spongepowered.api.util.command.CommandSource source)