SteamWar/SpigotCore
Archiviert
13
0

WIP: Dnamic SchemType rework

Dieser Commit ist enthalten in:
Lixfel 2020-01-19 14:37:59 +01:00
Ursprung 7ca97476bd
Commit 364d3f8f83

Datei anzeigen

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