diff options
author | Maximusbarcz <maxim.baranek@gmail.com> | 2022-12-28 17:22:23 +0100 |
---|---|---|
committer | Maximusbarcz <maxim.baranek@gmail.com> | 2022-12-28 17:22:23 +0100 |
commit | 730ba6e636d952e9730e3b9bbc035c894dfff25b (patch) | |
tree | 68db43f65ab7de762eeb07c015932ccf6af49248 /src/main/java/dev/mayaqq/ygasi/util/GetAdvancementProgress.java | |
parent | b1d919ad2ebf0b176953d57edef8e75835c633e3 (diff) | |
download | ygasi-730ba6e636d952e9730e3b9bbc035c894dfff25b.tar.gz ygasi-730ba6e636d952e9730e3b9bbc035c894dfff25b.tar.bz2 ygasi-730ba6e636d952e9730e3b9bbc035c894dfff25b.zip |
Added all the advancements! (other than extra)
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/util/GetAdvancementProgress.java')
-rw-r--r-- | src/main/java/dev/mayaqq/ygasi/util/GetAdvancementProgress.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/util/GetAdvancementProgress.java b/src/main/java/dev/mayaqq/ygasi/util/GetAdvancementProgress.java deleted file mode 100644 index 9b4d4a8..0000000 --- a/src/main/java/dev/mayaqq/ygasi/util/GetAdvancementProgress.java +++ /dev/null @@ -1,10 +0,0 @@ -package dev.mayaqq.ygasi.util; - -import net.minecraft.server.network.ServerPlayerEntity; -import net.minecraft.util.Identifier; - -public class GetAdvancementProgress { - public static boolean get(ServerPlayerEntity player, String advancement) { - return player.getAdvancementTracker().getProgress(player.getServer().getAdvancementLoader().get(new Identifier("minecraft", "ygasi/" + advancement))).isDone(); - } -} |