mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
8a3c8cfcd4
By: md_5 <git@md-5.net>
25 lines
797 B
Diff
25 lines
797 B
Diff
--- a/net/minecraft/advancements/AdvancementHolder.java
|
|
+++ b/net/minecraft/advancements/AdvancementHolder.java
|
|
@@ -3,6 +3,11 @@
|
|
import net.minecraft.network.PacketDataSerializer;
|
|
import net.minecraft.resources.MinecraftKey;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.craftbukkit.advancement.CraftAdvancement;
|
|
+import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
|
+// CraftBukkit end
|
|
+
|
|
public record AdvancementHolder(MinecraftKey id, Advancement value) {
|
|
|
|
public void write(PacketDataSerializer packetdataserializer) {
|
|
@@ -41,4 +46,10 @@
|
|
public String toString() {
|
|
return this.id.toString();
|
|
}
|
|
+
|
|
+ // CraftBukkit start
|
|
+ public final org.bukkit.advancement.Advancement toBukkit() {
|
|
+ return new CraftAdvancement(this);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
}
|