What are those getters doing here

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-10-31 22:53:44 +01:00
parent 429db5b2bf
commit 0bcfc39a9d
2 changed files with 0 additions and 43 deletions

View File

@ -139,24 +139,6 @@ public record Pos(double x, double y, double z, float yaw, float pitch) implemen
xz * Math.cos(Math.toRadians(rotX)));
}
@Override
@Contract(pure = true)
public double x() {
return x;
}
@Override
@Contract(pure = true)
public double y() {
return y;
}
@Override
@Contract(pure = true)
public double z() {
return z;
}
/**
* Returns a new position based on this position fields.
*
@ -269,16 +251,6 @@ public record Pos(double x, double y, double z, float yaw, float pitch) implemen
return (Pos) Point.super.relative(face);
}
@Contract(pure = true)
public float yaw() {
return yaw;
}
@Contract(pure = true)
public float pitch() {
return pitch;
}
@Contract(pure = true)
public @NotNull Vec asVec() {
return new Vec(x, y, z);

View File

@ -470,21 +470,6 @@ public record Vec(double x, double y, double z) implements Point {
return lerp(target, interpolation.apply(alpha));
}
@Override
public double x() {
return x;
}
@Override
public double y() {
return y;
}
@Override
public double z() {
return z;
}
@FunctionalInterface
public interface Operator {
/**