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,11 +1,7 @@
package WayofTime.alchemicalWizardry.api.rituals;
public class RitualComponent {
public record RitualComponent(int x, int y, int z, int stoneType) {
private int x;
private int y;
private int z;
private int stoneType;
public static final int BLANK = 0;
public static final int WATER = 1;
public static final int FIRE = 2;
@@ -14,52 +10,21 @@ public class RitualComponent {
public static final int DUSK = 5;
public static final int DAWN = 6;
public RitualComponent(int x, int y, int z, int stoneType) {
this.x = x;
this.y = y;
this.z = z;
this.stoneType = stoneType;
public int x(int direction) {
return switch (direction) {
case 2 -> -this.z();
case 3 -> -this.x();
case 4 -> this.z();
default -> this.x();
};
}
public int getX() {
return this.x;
}
public int getY() {
return this.y;
}
public int getZ() {
return this.z;
}
public int getX(int direction) {
switch (direction) {
case 2:
return -this.getZ();
case 3:
return -this.getX();
case 4:
return this.getZ();
default:
return this.getX();
}
}
public int getZ(int direction) {
switch (direction) {
case 2:
return this.getX();
case 3:
return -this.getZ();
case 4:
return -this.getX();
default:
return this.getZ();
}
}
public int getStoneType() {
return this.stoneType;
public int z(int direction) {
return switch (direction) {
case 2 -> this.x();
case 3 -> -this.z();
case 4 -> -this.x();
default -> this.z();
};
}
}