mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
30e4583dbe
By: Initial Source <noreply+automated@papermc.io>
24 lines
783 B
Diff
24 lines
783 B
Diff
--- a/net/minecraft/advancements/AdvancementHolder.java
|
|
+++ b/net/minecraft/advancements/AdvancementHolder.java
|
|
@@ -5,6 +5,10 @@
|
|
import net.minecraft.network.codec.ByteBufCodecs;
|
|
import net.minecraft.network.codec.StreamCodec;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
+// CraftBukkit start
|
|
+import org.bukkit.craftbukkit.advancement.CraftAdvancement;
|
|
+import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
|
+// CraftBukkit end
|
|
|
|
public record AdvancementHolder(ResourceLocation id, Advancement value) {
|
|
|
|
@@ -38,4 +42,10 @@
|
|
public String toString() {
|
|
return this.id.toString();
|
|
}
|
|
+
|
|
+ // CraftBukkit start
|
|
+ public final org.bukkit.advancement.Advancement toBukkit() {
|
|
+ return new CraftAdvancement(this);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
}
|