From 364d3f8f8304d6f749b82717eba1dd331ff83073 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 19 Jan 2020 14:37:59 +0100 Subject: [PATCH] WIP: Dnamic SchemType rework --- .../src/de/steamwar/sql/SchematicType.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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,