mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
18 lines
371 B
Java
18 lines
371 B
Java
package WayofTime.alchemicalWizardry.api;
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
public record Vector3(int x, int y, int 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 + "})";
|
|
}
|
|
|
|
}
|