diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java index 4f745cf..ff12ca0 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java @@ -3,8 +3,8 @@ package de.steamwar.sql; import java.util.HashMap; import java.util.Map; -public enum SchematicType { - Normal("", Type.NORMAL), +public class SchematicType { + public static final SchematicType Normal = new SchematicType("", Type.NORMAL); //Has to stay publicly availible CAirShip("CAS", Type.CHECK_TYPE), CWarGear("CWG", Type.CHECK_TYPE), @@ -46,11 +46,11 @@ public enum SchematicType { private final Type type; private SchematicType checkType; - SchematicType(String kuerzel, Type type){ + private SchematicType(String kuerzel, Type type){ this(kuerzel, type, null); } - SchematicType(String kuerzel, Type type, SchematicType checkType){ + private SchematicType(String kuerzel, Type type, SchematicType checkType){ this.kuerzel = kuerzel; this.type = type; this.checkType = checkType; @@ -88,6 +88,10 @@ public enum SchematicType { return fromDB.get(input.toLowerCase()); } + //public static List values(){ + //TODO + //} + enum Type{ NORMAL, CHECK_TYPE,