1package io.tofpu.speedbridge2.model.support.worldedit;
2
3public class Vector {
4 private final double x, y, z; 5
6 public Vector(final double x, final double y, final double z) {
7 this.x = x;
1package io.tofpu.speedbridge2.model.support.worldedit;
2
3public class Vector {
4 private final double x, y, z; 5
6 public Vector(final double x, final double y, final double z) {
7 this.x = x;
3import io.tofpu.multiworldedit.VectorWrapper;
4
5public final class CuboidRegion {
6 private final VectorWrapper minVector, maxVector; 7
8 public CuboidRegion(final VectorWrapper minVector, final VectorWrapper maxVector) {
9 this.minVector = minVector;
6import java.util.UUID;
7
8public enum PlayerStatType {
9 TOTAL_WINS, TOTAL_TRIES;10
11 public static PlayerStat create(final UUID owner, final PlayerStatType playerStatType) {
12 return create(owner, playerStatType, "0");
242 }
243
244 public enum LeaderboardRetrieveType {
245 GLOBAL, SESSION;246 }
247}
248
Multiple variables (or fields) should not be declared on the same line.
Declaring more than one variables (or fields) on the same line makes the code harder to read. Things might get more confusing if some of those variables are initiliazed and some of them are not.
class Klass {
private int a, b = 20;
private void method() {
double d1, d2 = 3.5, d3;
// ... rest of the code
}
}
Consider declaring one variable per line.
class Klass {
private int a;
private int b = 20;
private void method() {
double d1;
double d2 = 3.5;
double d3;
// ... rest of the code
}
}