thanks. Method, if someone might be interested:
public Position positionInFront(){
int dir = myPlayer().getRotation()/256;
Position myPos = myPlayer().getPosition();
Position pos = null;
if(dir == 0){
pos = new Position(myPos.getX(),myPos.getY()-1,myPos.getZ());
}else if(dir==2){
pos = new Position(myPos.getX()-1,myPos.getY(),myPos.getZ());
}else if(dir == 4){
pos = new Position(myPos.getX(),myPos.getY()+1,myPos.getZ());
}else if (dir == 6){
pos = new Position(myPos.getX()+1,myPos.getY(),myPos.getZ());
}
return pos;
}