Uses of Class
net.minecraft.advancements.Advancement
Package
Description
-
Uses of Advancement in net.minecraft.advancements
Modifier and TypeFieldDescriptionprivate final Advancement
CriterionTrigger.Listener.advancement
private final Advancement
TreeNodePosition.advancement
private Advancement
Advancement.Builder.parent
private final Advancement
Advancement.parent
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
Advancement> AdvancementList.advancements
private final Set<Advancement>
Advancement.children
private final Set<Advancement>
AdvancementList.roots
private final Set<Advancement>
AdvancementList.tasks
Modifier and TypeMethodDescriptionAdvancement.Builder.build
(ResourceLocation p_138404_) AdvancementList.get
(ResourceLocation p_139338_) Advancement.getParent()
Advancement.Builder.save
(Consumer<Advancement> p_138390_, String p_138391_) Modifier and TypeMethodDescriptionAdvancementList.getAllAdvancements()
Advancement.getChildren()
AdvancementList.getRoots()
Modifier and TypeMethodDescriptionvoid
Advancement.addChild
(Advancement p_138318_) private TreeNodePosition
TreeNodePosition.addChild
(Advancement p_16590_, TreeNodePosition p_16591_) void
AdvancementList.Listener.onAddAdvancementRoot
(Advancement p_139345_) void
AdvancementList.Listener.onAddAdvancementTask
(Advancement p_139347_) void
AdvancementList.Listener.onRemoveAdvancementRoot
(Advancement p_139346_) void
AdvancementList.Listener.onRemoveAdvancementTask
(Advancement p_139348_) Advancement.Builder.parent
(Advancement p_138399_) private void
AdvancementList.remove
(Advancement p_139340_) static void
TreeNodePosition.run
(Advancement p_16588_) Modifier and TypeMethodDescriptionboolean
Advancement.Builder.canBuild
(Function<ResourceLocation, Advancement> p_138393_) Advancement.Builder.save
(Consumer<Advancement> p_138390_, String p_138391_) ModifierConstructorDescriptionAdvancement
(ResourceLocation p_138307_, Advancement p_138308_, DisplayInfo p_138309_, AdvancementRewards p_138310_, Map<String, Criterion> p_138311_, String[][] p_138312_) Listener
(T p_13682_, Advancement p_13683_, String p_13684_) TreeNodePosition
(Advancement p_16567_, TreeNodePosition p_16568_, TreeNodePosition p_16569_, int p_16570_, int p_16571_) -
Uses of Advancement in net.minecraft.client.gui.components.toasts
-
Uses of Advancement in net.minecraft.client.gui.screens.advancements
Modifier and TypeFieldDescriptionprivate final Advancement
AdvancementTab.advancement
private final Advancement
AdvancementWidget.advancement
Modifier and TypeFieldDescriptionprivate final Map<Advancement,
AdvancementTab> AdvancementsScreen.tabs
private final Map<Advancement,
AdvancementWidget> AdvancementTab.widgets
Modifier and TypeMethodDescriptionvoid
AdvancementTab.addAdvancement
(Advancement p_97179_) private void
AdvancementTab.addWidget
(AdvancementWidget p_97176_, Advancement p_97177_) static AdvancementTab
AdvancementTab.create
(Minecraft p_97171_, AdvancementsScreen p_97172_, int p_97173_, Advancement p_97174_) AdvancementsScreen.getAdvancementWidget
(Advancement p_97393_) private AdvancementWidget
AdvancementWidget.getFirstVisibleParent
(Advancement p_97312_) private AdvancementTab
AdvancementsScreen.getTab
(Advancement p_97395_) AdvancementTab.getWidget
(Advancement p_97181_) void
AdvancementsScreen.onAddAdvancementRoot
(Advancement p_97366_) void
AdvancementsScreen.onAddAdvancementTask
(Advancement p_97380_) void
AdvancementsScreen.onRemoveAdvancementRoot
(Advancement p_97372_) void
AdvancementsScreen.onRemoveAdvancementTask
(Advancement p_97388_) void
AdvancementsScreen.onSelectedTabChanged
(Advancement p_97391_) void
AdvancementsScreen.onUpdateAdvancementProgress
(Advancement p_97368_, AdvancementProgress p_97369_) ModifierConstructorDescriptionAdvancementTab
(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, Advancement adv, DisplayInfo info) AdvancementTab
(Minecraft p_97145_, AdvancementsScreen p_97146_, AdvancementTabType p_97147_, int p_97148_, Advancement p_97149_, DisplayInfo p_97150_) AdvancementWidget
(AdvancementTab p_97255_, Minecraft p_97256_, Advancement p_97257_, DisplayInfo p_97258_) -
Uses of Advancement in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionprivate final Map<Advancement,
AdvancementProgress> ClientAdvancements.progress
Modifier and TypeMethodDescriptionvoid
ClientAdvancements.Listener.onSelectedTabChanged
(Advancement p_104406_) void
ClientAdvancements.Listener.onUpdateAdvancementProgress
(Advancement p_104404_, AdvancementProgress p_104405_) void
ClientAdvancements.setSelectedTab
(Advancement p_104402_, boolean p_104403_) -
Uses of Advancement in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic Advancement
ResourceLocationArgument.getAdvancement
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106988_, String p_106989_) -
Uses of Advancement in net.minecraft.data.advancements
Modifier and TypeFieldDescriptionprivate final List<Consumer<Consumer<Advancement>>>
AdvancementProvider.tabs
Modifier and TypeMethodDescriptionprivate static Path
AdvancementProvider.createPath
(Path p_123971_, Advancement p_123972_) Modifier and TypeMethodDescriptionvoid
AdventureAdvancements.accept
(Consumer<Advancement> p_123983_) void
HusbandryAdvancements.accept
(Consumer<Advancement> p_123998_) void
NetherAdvancements.accept
(Consumer<Advancement> p_124020_) void
StoryAdvancements.accept
(Consumer<Advancement> p_124025_) void
TheEndAdvancements.accept
(Consumer<Advancement> p_124030_) protected void
AdvancementProvider.registerAdvancements
(Consumer<Advancement> consumer, ExistingFileHelper fileHelper) Override this method for registering and generating customAdvancement
s. -
Uses of Advancement in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionServerboundSeenAdvancementsPacket.openedTab
(Advancement p_134443_) ModifierConstructorDescriptionClientboundUpdateAdvancementsPacket
(boolean p_133560_, Collection<Advancement> p_133561_, Set<ResourceLocation> p_133562_, Map<ResourceLocation, AdvancementProgress> p_133563_) -
Uses of Advancement in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final Map<Advancement,
AdvancementProgress> PlayerAdvancements.advancements
private final Set<Advancement>
PlayerAdvancements.progressChanged
private final Set<Advancement>
PlayerAdvancements.visibilityChanged
private final Set<Advancement>
PlayerAdvancements.visible
Modifier and TypeMethodDescriptionServerAdvancementManager.getAdvancement
(ResourceLocation p_136042_) Modifier and TypeMethodDescriptionboolean
PlayerAdvancements.award
(Advancement p_135989_, String p_135990_) private void
PlayerAdvancements.ensureVisibility
(Advancement p_136011_) PlayerAdvancements.getOrStartProgress
(Advancement p_135997_) private boolean
PlayerAdvancements.hasCompletedChildrenOrSelf
(Advancement p_136015_) private void
PlayerAdvancements.registerListeners
(Advancement p_136005_) boolean
PlayerAdvancements.revoke
(Advancement p_135999_, String p_136000_) void
PlayerAdvancements.setSelectedTab
(Advancement p_135984_) private boolean
PlayerAdvancements.shouldBeVisible
(Advancement p_136013_) private void
PlayerAdvancements.startProgress
(Advancement p_135986_, AdvancementProgress p_135987_) private void
PlayerAdvancements.unregisterListeners
(Advancement p_136009_) -
Uses of Advancement in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static List<Advancement>
AdvancementCommands.getAdvancements
(Advancement p_136334_, AdvancementCommands.Mode p_136335_) Modifier and TypeMethodDescriptionprivate static void
AdvancementCommands.addChildren
(Advancement p_136331_, List<Advancement> p_136332_) private static List<Advancement>
AdvancementCommands.getAdvancements
(Advancement p_136334_, AdvancementCommands.Mode p_136335_) protected abstract boolean
AdvancementCommands.Action.perform
(ServerPlayer p_136382_, Advancement p_136383_) protected abstract boolean
AdvancementCommands.Action.performCriterion
(ServerPlayer p_136384_, Advancement p_136385_, String p_136386_) private static int
AdvancementCommands.performCriterion
(CommandSourceStack p_136325_, Collection<ServerPlayer> p_136326_, AdvancementCommands.Action p_136327_, Advancement p_136328_, String p_136329_) Modifier and TypeMethodDescriptionprivate static void
AdvancementCommands.addChildren
(Advancement p_136331_, List<Advancement> p_136332_) int
AdvancementCommands.Action.perform
(ServerPlayer p_136380_, Iterable<Advancement> p_136381_) -
Uses of Advancement in net.minecraftforge.client
Modifier and TypeMethodDescriptionClientCommandSourceStack.getAdvancement
(ResourceLocation id) Gets the advancement from the id from the client side where the advancement needs to be visible to the player -
Uses of Advancement in net.minecraftforge.common
Modifier and TypeFieldDescriptionprivate static Map<Advancement,
List<Advancement>> AdvancementLoadFix.roots
private static Map<Advancement,
List<Advancement>> AdvancementLoadFix.roots
Modifier and TypeMethodDescriptionprivate static com.google.common.graph.Graph<Advancement>
AdvancementLoadFix.buildGraph
(Advancement root) Modifier and TypeMethodDescriptionprivate static void
AdvancementLoadFix.addEdgesAndChildren
(Advancement root, com.google.common.graph.MutableGraph<Advancement> tree) private static com.google.common.graph.Graph<Advancement>
AdvancementLoadFix.buildGraph
(Advancement root) private static boolean
AdvancementLoadFix.containsAncestor
(Advancement adv, Set<Advancement> set) static void
ForgeHooks.onAdvancement
(ServerPlayer player, Advancement advancement) private static void
AdvancementLoadFix.updateVisibility
(Advancement adv, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) Modifier and TypeMethodDescriptionprivate static void
AdvancementLoadFix.addEdgesAndChildren
(Advancement root, com.google.common.graph.MutableGraph<Advancement> tree) static void
AdvancementLoadFix.buildSortedTrees
(Set<Advancement> roots) private static boolean
AdvancementLoadFix.containsAncestor
(Advancement adv, Set<Advancement> set) static void
AdvancementLoadFix.loadVisibility
(PlayerAdvancements playerAdvancements, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) static void
AdvancementLoadFix.loadVisibility
(PlayerAdvancements playerAdvancements, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) static void
AdvancementLoadFix.loadVisibility
(PlayerAdvancements playerAdvancements, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) private static void
AdvancementLoadFix.updateVisibility
(Advancement adv, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) private static void
AdvancementLoadFix.updateVisibility
(Advancement adv, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) private static void
AdvancementLoadFix.updateVisibility
(Advancement adv, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) -
Uses of Advancement in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault Advancement
IForgeCommandSourceStack.getAdvancement
(ResourceLocation id) default Advancement
IForgeAdvancementBuilder.save
(Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper) save function for theAdvancement.Builder
which uses theExistingFileHelper
to check if the parent is already knownModifier and TypeMethodDescriptiondefault Advancement
IForgeAdvancementBuilder.save
(Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper) save function for theAdvancement.Builder
which uses theExistingFileHelper
to check if the parent is already known -
Uses of Advancement in net.minecraftforge.debug
Modifier and TypeMethodDescriptionprotected void
DataGeneratorTest.Advancements.registerAdvancements
(Consumer<Advancement> consumer, ExistingFileHelper fileHelper) -
Uses of Advancement in net.minecraftforge.event.entity.player