Reformat again

This commit is contained in:
dfsek
2020-11-06 15:45:07 -07:00
parent 4f40550465
commit a362ed47ce
45 changed files with 192 additions and 113 deletions

View File

@@ -146,7 +146,7 @@ public class Vector2 implements Cloneable {
@Override
public boolean equals(Object obj) {
if(! (obj instanceof Vector2)) {
if(!(obj instanceof Vector2)) {
return false;
}
Vector2 other = (Vector2) obj;

View File

@@ -5,9 +5,9 @@ import org.polydev.gaea.math.FastNoiseLite;
public class DeformedSphere extends VoxelGeometry {
public DeformedSphere(Vector start, int rad, double deform, FastNoiseLite noise) {
for(int x = - rad; x <= rad; x++) {
for(int y = - rad; y <= rad; y++) {
for(int z = - rad; z <= rad; z++) {
for(int x = -rad; x <= rad; x++) {
for(int y = -rad; y <= rad; y++) {
for(int z = -rad; z <= rad; z++) {
Vector c = new Vector(x, y, z);
if(c.length() < (rad + 0.5) * ((noise.getNoise(x, y, z) + 1) * deform)) {
addVector(c.add(start));

View File

@@ -4,9 +4,9 @@ import org.bukkit.util.Vector;
public class Sphere extends VoxelGeometry {
public Sphere(Vector start, int rad) {
for(int x = - rad; x <= rad; x++) {
for(int y = - rad; y <= rad; y++) {
for(int z = - rad; z <= rad; z++) {
for(int x = -rad; x <= rad; x++) {
for(int y = -rad; y <= rad; y++) {
for(int z = -rad; z <= rad; z++) {
Vector c = new Vector(x, y, z);
if(c.length() < rad + 0.5) {
addVector(c.add(start));