Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yancey2023 committed Feb 16, 2024
1 parent e4267ae commit 8aa20d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ public class IdentifierCache {

public static List<Identifier> identifierList = new ArrayList<>();

public static void add(Identifier identifier){
public static void add(Identifier identifier) {
if (!identifierList.contains(identifier)) {
identifierList.add(identifier);
}
}

public static int getId(Identifier identifier){
public static int getId(Identifier identifier) {
for (int i = 0; i < identifierList.size(); i++) {
if(identifierList.get(i) == identifier){
if (identifierList.get(i) == identifier) {
return i;
}
}
return -1;
}

public static Identifier getIdentifier(int id){
public static Identifier getIdentifier(int id) {
return identifierList.get(id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Vec3 toRadians() {
return new Vec3((float) Math.toRadians(x), (float) Math.toRadians(y), (float) Math.toRadians(z));
}

public boolean isZero(){
public boolean isZero() {
return x == 0 && y == 0 && z == 0;
}

Expand Down

0 comments on commit 8aa20d6

Please sign in to comment.