Add in some ASCII-art and make sure the adapters have premade instances.

This commit is contained in:
Olof Larsson
2013-04-17 15:49:29 +02:00
parent f4d799e978
commit 003afbf108
7 changed files with 58 additions and 17 deletions

View File

@@ -10,6 +10,17 @@ import com.massivecraft.mcore.xlib.gson.JsonParseException;
public class FFlagAdapter implements JsonDeserializer<FFlag>
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
private static FFlagAdapter i = new FFlagAdapter();
public static FFlagAdapter get() { return i; }
// -------------------------------------------- //
// OVERRIDE
// -------------------------------------------- //
@Override
public FFlag deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{