Java 类net.minecraft.server.EntityMinecartCommandBlock 实例源码

项目:CraftBukkit    文件:VanillaCommandWrapper.java   
private ICommandListener getListener(CommandSender sender) {
    if (sender instanceof Player) {
        return ((CraftPlayer) sender).getHandle();
    }
    if (sender instanceof BlockCommandSender) {
        return ((CraftBlockCommandSender) sender).getTileEntity();
    }
    if (sender instanceof CommandMinecart) {
        return ((EntityMinecartCommandBlock) ((CraftMinecartCommand) sender).getHandle()).getCommandBlock();
    }
    if (sender instanceof RemoteConsoleCommandSender) {
        return RemoteControlCommandListener.instance;
    }
    if (sender instanceof ConsoleCommandSender) {
        return ((CraftServer) sender.getServer()).getServer();
    }
    return null;
}
项目:Tweakkit-Server    文件:VanillaCommandWrapper.java   
private ICommandListener getListener(CommandSender sender) {
    if (sender instanceof Player) {
        return ((CraftPlayer) sender).getHandle();
    }
    if (sender instanceof BlockCommandSender) {
        return ((CraftBlockCommandSender) sender).getTileEntity();
    }
    if (sender instanceof CommandMinecart) {
        return ((EntityMinecartCommandBlock) ((CraftMinecartCommand) sender).getHandle()).getCommandBlock();
    }
    if (sender instanceof RemoteConsoleCommandSender) {
        return RemoteControlCommandListener.instance;
    }
    if (sender instanceof ConsoleCommandSender) {
        return ((CraftServer) sender.getServer()).getServer();
    }
    return null;
}
项目:CraftBukkit    文件:CraftMinecartCommand.java   
public CraftMinecartCommand(CraftServer server, EntityMinecartCommandBlock entity) {
    super(server, entity);
}
项目:CraftBukkit    文件:CraftMinecartCommand.java   
@Override
public String getCommand() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getCommand();
}
项目:CraftBukkit    文件:CraftMinecartCommand.java   
@Override
public void setCommand(String command) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setCommand(command != null ? command : "");
}
项目:CraftBukkit    文件:CraftMinecartCommand.java   
@Override
public void setName(String name) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setName(name != null ? name : "@");
}
项目:CraftBukkit    文件:CraftMinecartCommand.java   
@Override
public String getName() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getName();
}
项目:Craftbukkit    文件:CraftMinecartCommand.java   
public CraftMinecartCommand(CraftServer server, EntityMinecartCommandBlock entity) {
    super(server, entity);
}
项目:Craftbukkit    文件:CraftMinecartCommand.java   
@Override
public String getCommand() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getCommand();
}
项目:Craftbukkit    文件:CraftMinecartCommand.java   
@Override
public void setCommand(String command) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setCommand(command != null ? command : "");
}
项目:Craftbukkit    文件:CraftMinecartCommand.java   
@Override
public void setName(String name) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setName(name != null ? name : "@");
}
项目:Craftbukkit    文件:CraftMinecartCommand.java   
@Override
public String getName() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getName();
}
项目:Tweakkit-Server    文件:CraftMinecartCommand.java   
public CraftMinecartCommand(CraftServer server, EntityMinecartCommandBlock entity) {
    super(server, entity);
}
项目:Tweakkit-Server    文件:CraftMinecartCommand.java   
@Override
public String getCommand() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getCommand();
}
项目:Tweakkit-Server    文件:CraftMinecartCommand.java   
@Override
public void setCommand(String command) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setCommand(command != null ? command : "");
}
项目:Tweakkit-Server    文件:CraftMinecartCommand.java   
@Override
public void setName(String name) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setName(name != null ? name : "@");
}
项目:Tweakkit-Server    文件:CraftMinecartCommand.java   
@Override
public String getName() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getName();
}
项目:SpigotSource    文件:CraftMinecartCommand.java   
public CraftMinecartCommand(CraftServer server, EntityMinecartCommandBlock entity) {
    super(server, entity);
}
项目:SpigotSource    文件:CraftMinecartCommand.java   
@Override
public String getCommand() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getCommand();
}
项目:SpigotSource    文件:CraftMinecartCommand.java   
@Override
public void setCommand(String command) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setCommand(command != null ? command : "");
}
项目:SpigotSource    文件:CraftMinecartCommand.java   
@Override
public void setName(String name) {
    ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().setName(name != null ? name : "@");
}
项目:SpigotSource    文件:CraftMinecartCommand.java   
@Override
public String getName() {
    return ((EntityMinecartCommandBlock) getHandle()).getCommandBlock().getName();
}