mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +01:00
Formatting
This commit is contained in:
parent
5085f8fa58
commit
641ca02120
@ -1,6 +1,8 @@
|
|||||||
package net.minestom.codegen.attribute;
|
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.google.gson.stream.JsonReader;
|
||||||
import com.squareup.javapoet.*;
|
import com.squareup.javapoet.*;
|
||||||
import net.minestom.codegen.MinestomCodeGenerator;
|
import net.minestom.codegen.MinestomCodeGenerator;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package net.minestom.codegen.entity;
|
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.google.gson.stream.JsonReader;
|
||||||
import com.squareup.javapoet.*;
|
import com.squareup.javapoet.*;
|
||||||
import net.minestom.codegen.MinestomCodeGenerator;
|
import net.minestom.codegen.MinestomCodeGenerator;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package net.minestom.codegen.entity;
|
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.google.gson.stream.JsonReader;
|
||||||
import com.squareup.javapoet.*;
|
import com.squareup.javapoet.*;
|
||||||
import net.minestom.codegen.MinestomCodeGenerator;
|
import net.minestom.codegen.MinestomCodeGenerator;
|
||||||
|
@ -284,7 +284,7 @@ public final class MaterialGenerator extends MinestomCodeGenerator {
|
|||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
if (ap.get("slot") != null) {
|
if (ap.get("slot") != null) {
|
||||||
switch(ap.get("slot").getAsString()) {
|
switch (ap.get("slot").getAsString()) {
|
||||||
case "head": {
|
case "head": {
|
||||||
enumConst.addMethod(
|
enumConst.addMethod(
|
||||||
MethodSpec.methodBuilder("isHelmet")
|
MethodSpec.methodBuilder("isHelmet")
|
||||||
|
Loading…
Reference in New Issue
Block a user