@@ -0,0 +1,1746 @@
+package com.SamB440.AdvancementGUI;%0A%0Aimport com.google.gson.JsonObject;%0Aimport org.bukkit.inventory.ItemStack;%0A%0A/**%0A * Created by ysl3000%0A */ //BEGIN CLASSES%0Apublic class Condition %7B%0A    protected String name;%0A    protected JsonObject set;%0A%0A    private Condition(String name, JsonObject set) %7B%0A        this.name = name;%0A        this.set = set;%0A    %7D%0A%0A    public static ConditionBuilder builder(String name, JsonObject itemStack) %7B%0A        return new Condition.ConditionBuilder().name(name).set(itemStack);%0A    %7D%0A%0A    public static ConditionBuilder builder(String name, ItemStack itemStack) %7B%0A        return Condition.builder(name,convertItemToJSON(itemStack));%0A    %7D%0A%0A%0A    //BEGIN UTIL%0A    @SuppressWarnings(%22deprecation%22)%0A%09private static JsonObject convertItemToJSON(ItemStack item) %7B%0A        JsonObject itemJSON = new JsonObject();%0A        itemJSON.addProperty(%22item%22, %22minecraft:%22 + item.getType().name().toLowerCase());%0A        itemJSON.addProperty(%22amount%22, item.getAmount());%0A        itemJSON.addProperty(%22data%22, item.getData().getData());%0A        return itemJSON;%0A    %7D%0A%0A%0A%0A    public static class ConditionBuilder %7B%0A        private String name;%0A        private JsonObject set;%0A%0A        ConditionBuilder() %7B%0A        %7D%0A%0A        public Condition.ConditionBuilder name(String name) %7B%0A            this.name = name;%0A            return this;%0A        %7D%0A%0A        public Condition.ConditionBuilder set(JsonObject set) %7B%0A            this.set = set;%0A            return this;%0A        %7D%0A%0A        public Condition build() %7B%0A            return new Condition(name, set);%0A        %7D%0A%0A        public String toString() %7B%0A            return %22io.chazza.advancementapi.Condition.ConditionBuilder(name=%22 + this.name + %22, set=%22 + this.set + %22)%22;%0A        %7D%0A    %7D%0A%7D%0A%0A

Create Condition.java