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.Advancement
getAdvancement
(net.minecraftforge.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.Advancement advancement) static boolean
hasAdvancementUnlocked
(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation advancementId) static <T extends net.minecraft.advancements.CriterionTrigger<?>>
TregisterCriteriaTrigger
(T criterion) 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.Advancement 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.Advancement getAdvancement(net.minecraftforge.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() -
registerCriteriaTrigger
public static <T extends net.minecraft.advancements.CriterionTrigger<?>> T registerCriteriaTrigger(T criterion)
-