@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Location location = (Location) o;

        if (Float.compare(location.pitch, pitch) != 0) return false;
        if (Float.compare(location.x, x) != 0) return false;
        if (Float.compare(location.y, y) != 0) return false;
        if (Float.compare(location.yaw, yaw) != 0) return false;
        if (Float.compare(location.z, z) != 0) return false;
        if (!world.equals(location.world)) return false;

        return true;
    }