53 lines
940 B
Java
53 lines
940 B
Java
package game.command;
|
|
|
|
import game.Server;
|
|
import game.entity.Entity;
|
|
import game.world.BlockPos;
|
|
import game.world.Position;
|
|
|
|
public class FixedExecutor implements Executor {
|
|
private final Server server;
|
|
private final String id;
|
|
|
|
private String name;
|
|
private Position position;
|
|
|
|
public FixedExecutor(Server server, String id, String name, Position pos) {
|
|
this.server = server;
|
|
this.id = id;
|
|
this.name = name;
|
|
this.position = pos;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public void setPosition(Position pos) {
|
|
this.position = pos;
|
|
}
|
|
|
|
public void logConsole(String msg) {
|
|
this.server.logConsole(msg);
|
|
}
|
|
|
|
public String getExecId() {
|
|
return this.id;
|
|
}
|
|
|
|
public String getExecName() {
|
|
return this.name;
|
|
}
|
|
|
|
public Position getExecPos() {
|
|
return this.position;
|
|
}
|
|
|
|
public Entity getPointedEntity() {
|
|
return null;
|
|
}
|
|
|
|
public BlockPos getPointedPosition() {
|
|
return null;
|
|
}
|
|
}
|