--- a/net/minecraft/advancements/AdvancementHolder.java
+++ b/net/minecraft/advancements/AdvancementHolder.java
@@ -2,8 +2,13 @@
 
 import net.minecraft.network.FriendlyByteBuf;
 import net.minecraft.resources.ResourceLocation;
+// CraftBukkit start
+import org.bukkit.craftbukkit.v1_20_R2.advancement.CraftAdvancement;
+import org.bukkit.craftbukkit.v1_20_R2.util.CraftNamespacedKey;
+// CraftBukkit end
 
 public record AdvancementHolder(ResourceLocation id, Advancement value) {
+
     public void write(FriendlyByteBuf buf) {
         buf.writeResourceLocation(this.id);
         this.value.write(buf);
@@ -13,29 +18,37 @@
         return new AdvancementHolder(buf.readResourceLocation(), Advancement.read(buf));
     }
 
-    @Override
     public boolean equals(Object object) {
         if (this == object) {
             return true;
         } else {
+            boolean flag;
+
             if (object instanceof AdvancementHolder) {
-                AdvancementHolder advancementHolder = (AdvancementHolder)object;
-                if (this.id.equals(advancementHolder.id)) {
-                    return true;
+                AdvancementHolder advancementholder = (AdvancementHolder) object;
+
+                if (this.id.equals(advancementholder.id)) {
+                    flag = true;
+                    return flag;
                 }
             }
 
-            return false;
+            flag = false;
+            return flag;
         }
     }
 
-    @Override
     public int hashCode() {
         return this.id.hashCode();
     }
 
-    @Override
     public String toString() {
         return this.id.toString();
     }
+
+    // CraftBukkit start
+    public final org.bukkit.advancement.Advancement toBukkit() {
+        return new CraftAdvancement(this);
+    }
+    // CraftBukkit end
 }
