mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +01:00
What are those getters doing here
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
429db5b2bf
commit
0bcfc39a9d
@ -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);
|
||||
|
@ -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 {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user