Formatting

This commit is contained in:
TheMode 2021-06-06 04:48:43 +02:00
parent 5085f8fa58
commit 641ca02120
18 changed files with 37 additions and 31 deletions

View File

@ -1,6 +1,8 @@
package net.minestom.codegen.attribute;
import com.google.gson.*;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.stream.JsonReader;
import com.squareup.javapoet.*;
import net.minestom.codegen.MinestomCodeGenerator;

View File

@ -1,6 +1,8 @@
package net.minestom.codegen.entity;
import com.google.gson.*;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.stream.JsonReader;
import com.squareup.javapoet.*;
import net.minestom.codegen.MinestomCodeGenerator;

View File

@ -1,6 +1,8 @@
package net.minestom.codegen.entity;
import com.google.gson.*;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.stream.JsonReader;
import com.squareup.javapoet.*;
import net.minestom.codegen.MinestomCodeGenerator;

View File

@ -284,7 +284,7 @@ public final class MaterialGenerator extends MinestomCodeGenerator {
.build()
);
if (ap.get("slot") != null) {
switch(ap.get("slot").getAsString()) {
switch (ap.get("slot").getAsString()) {
case "head": {
enumConst.addMethod(
MethodSpec.methodBuilder("isHelmet")