split server #2

This commit is contained in:
Sen 2025-05-03 22:42:03 +02:00
parent 3ab017888b
commit 8f8abfa0d3
11 changed files with 419 additions and 44 deletions

View file

@ -0,0 +1,53 @@
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;
}
}