public static BlockFace getPistonBlockFace(Vector direction, Vector player) {
        Vector vec = direction.clone();
        int x = vec.getBlockX();
        int y = vec.getBlockY();
        int z = vec.getBlockZ();
        if(y==0||y==1||x>=2||x<-2||z>=2||z<-2){
            return get4BlockFace(player);
        } else {
            if(y<0){
                return BlockFace.DOWN;
            } else{
                return BlockFace.UP;
            }
        }
    }