/** * Add exact coordinates, multiple lines. No leading new line. * * @param from * @param to * @param loc Reference location for from, usually Player.getLocation(). * @param builder */ public static void addMove( final Location from, final Location to, final Location loc, final StringBuilder builder) { if (loc != null && !TrigUtil.isSamePos(from, loc)) { builder.append("Location: "); addLocation(loc, builder); builder.append("\n"); } addMove(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ(), builder); }