Spring Cleaning (#127)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
koolkrafter5andgithub-actions[bot] authored and GitHub committed 2026-05-12 20:52:29 +02:00
1 parent 1544c1bf0d
commit 3b2b31f733
413 files changed
+9272 -17658

No files matched your search

@@ -1,41 +1,17 @@
package WayofTime.alchemicalWizardry.api;
/*
* Created in Scala by Alex-Hawks Translated and implemented by Arcaratus
*/
public class Vector3 {
import javax.annotation.Nonnull;
public int x, y, z;
public record Vector3(int x, int y, int z) {
public Vector3(int x, int y, int z) {
this.x = x;
this.y = y;
this.z = z;
}
public Vector3 add(Vector3 vec1) {
return new Vector3(this.x + vec1.x, this.y + vec1.y, this.z + vec1.z);
public Vector3 add(Vector3 vec) {
return new Vector3(this.x + vec.x, this.y + vec.y, this.z + vec.z);
}
@Override
@Nonnull
public String toString() {
return "V3(" + x + "}, " + y + "}," + z + "})";
return "V3({" + x + "}, {" + y + "}, {" + z + "})";
}
private boolean canEqual(Object object) {
return object instanceof Vector3;
}
@Override
public boolean equals(Object object) {
return object == this || object instanceof Vector3 && canEqual(this)
&& this.x == ((Vector3) object).x
&& this.y == ((Vector3) object).y
&& this.z == ((Vector3) object).z;
}
@Override
public int hashCode() {
return 48131 * x - 95021 * y + z;
}
}