Package org.cyclops.cyclopscore.helper
Class AdvancementHelpers
java.lang.Object
org.cyclops.cyclopscore.helper.AdvancementHelpers
Helpers related to advancements
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.advancements.AdvancementHolder
getAdvancement
(net.neoforged.api.distmarker.Dist dist, net.minecraft.resources.ResourceLocation resourceLocation) static net.minecraft.client.multiplayer.ClientAdvancements
static net.minecraft.server.ServerAdvancementManager
static boolean
hasAdvancementUnlocked
(net.minecraft.world.entity.player.Player player, net.minecraft.advancements.AdvancementHolder advancement) static boolean
hasAdvancementUnlocked
(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation advancementId) static void
requestAdvancementUnlockInfo
(net.minecraft.resources.ResourceLocation advancementId)
-
Field Details
-
ACHIEVED_ADVANCEMENTS
-
-
Constructor Details
-
AdvancementHelpers
public AdvancementHelpers()
-
-
Method Details
-
hasAdvancementUnlocked
public static boolean hasAdvancementUnlocked(net.minecraft.world.entity.player.Player player, net.minecraft.advancements.AdvancementHolder advancement) -
hasAdvancementUnlocked
public static boolean hasAdvancementUnlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation advancementId) -
requestAdvancementUnlockInfo
public static void requestAdvancementUnlockInfo(net.minecraft.resources.ResourceLocation advancementId) -
getAdvancement
public static net.minecraft.advancements.AdvancementHolder getAdvancement(net.neoforged.api.distmarker.Dist dist, net.minecraft.resources.ResourceLocation resourceLocation) -
getAdvancementManagerServer
public static net.minecraft.server.ServerAdvancementManager getAdvancementManagerServer() -
getAdvancementManagerClient
public static net.minecraft.client.multiplayer.ClientAdvancements getAdvancementManagerClient()
-