public JsonList(File file1) { this.c = file1; GsonBuilder gsonbuilder = (new GsonBuilder()).setPrettyPrinting(); gsonbuilder.registerTypeHierarchyAdapter(JsonListEntry.class, new JsonListEntrySerializer(this, (JsonListType) null)); this.b = gsonbuilder.create(); }
public UserCache(MinecraftServer minecraftserver, File file1) { this.f = minecraftserver; this.g = file1; GsonBuilder gsonbuilder = new GsonBuilder(); gsonbuilder.registerTypeHierarchyAdapter(UserCacheEntry.class, new BanEntrySerializer(this, (GameProfileLookup) null)); this.b = gsonbuilder.create(); this.b(); }