Uses of Record Class
net.minecraft.advancements.AdvancementHolder
Package
Description
-
Uses of AdvancementHolder in net.minecraft.advancements
Modifier and TypeFieldDescriptionprivate final AdvancementHolder
CriterionTrigger.Listener.advancement
The field for theadvancement
record component.private final AdvancementHolder
AdvancementNode.holder
Modifier and TypeMethodDescriptionCriterionTrigger.Listener.advancement()
Returns the value of theadvancement
record component.Advancement.Builder.build
(ResourceLocation p_138404_) AdvancementNode.holder()
static AdvancementHolder
AdvancementHolder.read
(FriendlyByteBuf p_299642_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, ResourceLocation id) Modifier and TypeMethodDescriptionAdvancementType.createAnnouncement
(AdvancementHolder p_311620_, ServerPlayer p_311407_) AdvancementTree.get
(AdvancementHolder p_299974_) static Component
Advancement.name
(AdvancementHolder p_297556_) Advancement.Builder.parent
(AdvancementHolder p_300513_) private boolean
AdvancementTree.tryInsert
(AdvancementHolder p_300067_) Modifier and TypeMethodDescriptionvoid
AdvancementTree.addAll
(Collection<AdvancementHolder> p_299574_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, ResourceLocation id) ModifierConstructorDescriptionAdvancementNode
(AdvancementHolder p_300583_, AdvancementNode p_299774_) Listener
(T trigger, AdvancementHolder advancement, String criterion) Creates an instance of aListener
record class. -
Uses of AdvancementHolder in net.minecraft.client.gui.components.toasts
-
Uses of AdvancementHolder in net.minecraft.client.gui.screens.advancements
Modifier and TypeFieldDescriptionprivate final Map<AdvancementHolder,
AdvancementTab> AdvancementsScreen.tabs
private final Map<AdvancementHolder,
AdvancementWidget> AdvancementTab.widgets
Modifier and TypeMethodDescriptionprivate void
AdvancementTab.addWidget
(AdvancementWidget p_97176_, AdvancementHolder p_298201_) AdvancementTab.getWidget
(AdvancementHolder p_300472_) void
AdvancementsScreen.onSelectedTabChanged
(AdvancementHolder p_297665_) -
Uses of AdvancementHolder in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionprivate final Map<AdvancementHolder,
AdvancementProgress> ClientAdvancements.progress
Modifier and TypeMethodDescriptionvoid
ClientAdvancements.Listener.onSelectedTabChanged
(AdvancementHolder p_301401_) void
ClientAdvancements.setSelectedTab
(AdvancementHolder p_298261_, boolean p_104403_) -
Uses of AdvancementHolder in net.minecraft.client.telemetry
Modifier and TypeMethodDescriptionvoid
WorldSessionTelemetryManager.onAdvancementDone
(Level p_286825_, AdvancementHolder p_298119_) -
Uses of AdvancementHolder in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic AdvancementHolder
ResourceLocationArgument.getAdvancement
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106988_, String p_106989_) -
Uses of AdvancementHolder in net.minecraft.data.advancements
Modifier and TypeMethodDescriptionstatic AdvancementHolder
AdvancementSubProvider.createPlaceholder
(String p_312736_) Modifier and TypeMethodDescriptionvoid
AdvancementSubProvider.generate
(HolderLookup.Provider p_255901_, Consumer<AdvancementHolder> p_250888_) -
Uses of AdvancementHolder in net.minecraft.data.advancements.packs
Modifier and TypeMethodDescriptionstatic AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_301269_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) static AdvancementHolder
VanillaAdventureAdvancements.createMonsterHunterAdvancement
(AdvancementHolder p_309635_, Consumer<AdvancementHolder> p_309544_, List<EntityType<?>> p_310276_) Modifier and TypeMethodDescriptionprotected static void
VanillaAdventureAdvancements.createAdventuringTime
(Consumer<AdvancementHolder> p_275645_, AdvancementHolder p_298014_, MultiNoiseBiomeSourceParameterList.Preset p_275211_) static AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_301269_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) static AdvancementHolder
VanillaAdventureAdvancements.createMonsterHunterAdvancement
(AdvancementHolder p_309635_, Consumer<AdvancementHolder> p_309544_, List<EntityType<?>> p_310276_) Modifier and TypeMethodDescriptionprotected static void
VanillaAdventureAdvancements.createAdventuringTime
(Consumer<AdvancementHolder> p_275645_, AdvancementHolder p_298014_, MultiNoiseBiomeSourceParameterList.Preset p_275211_) static AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_301269_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) static AdvancementHolder
VanillaAdventureAdvancements.createMonsterHunterAdvancement
(AdvancementHolder p_309635_, Consumer<AdvancementHolder> p_309544_, List<EntityType<?>> p_310276_) void
UpdateOneTwentyOneAdventureAdvancements.generate
(HolderLookup.Provider p_312808_, Consumer<AdvancementHolder> p_313044_) void
VanillaAdventureAdvancements.generate
(HolderLookup.Provider p_255887_, Consumer<AdvancementHolder> p_256428_) void
VanillaHusbandryAdvancements.generate
(HolderLookup.Provider p_255680_, Consumer<AdvancementHolder> p_251389_) void
VanillaNetherAdvancements.generate
(HolderLookup.Provider p_256338_, Consumer<AdvancementHolder> p_249760_) void
VanillaStoryAdvancements.generate
(HolderLookup.Provider p_256574_, Consumer<AdvancementHolder> p_248554_) void
VanillaTheEndAdvancements.generate
(HolderLookup.Provider p_256214_, Consumer<AdvancementHolder> p_250851_) -
Uses of AdvancementHolder in net.minecraft.data.recipes
Modifier and TypeMethodDescriptiondefault void
RecipeOutput.accept
(ResourceLocation id, Recipe<?> recipe, AdvancementHolder advancement) protected CompletableFuture<?>
RecipeProvider.buildAdvancement
(CachedOutput p_253674_, AdvancementHolder p_297687_) -
Uses of AdvancementHolder in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final List<AdvancementHolder>
ClientboundUpdateAdvancementsPacket.added
Modifier and TypeMethodDescriptionServerboundSeenAdvancementsPacket.openedTab
(AdvancementHolder p_300057_) ModifierConstructorDescriptionClientboundUpdateAdvancementsPacket
(boolean p_133560_, Collection<AdvancementHolder> p_133561_, Set<ResourceLocation> p_133562_, Map<ResourceLocation, AdvancementProgress> p_133563_) -
Uses of AdvancementHolder in net.minecraft.server
Modifier and TypeFieldDescriptionprivate Map<ResourceLocation,
AdvancementHolder> ServerAdvancementManager.advancements
private final Map<AdvancementHolder,
AdvancementProgress> PlayerAdvancements.progress
private final Set<AdvancementHolder>
PlayerAdvancements.progressChanged
private final Set<AdvancementHolder>
PlayerAdvancements.visible
Modifier and TypeMethodDescriptionboolean
PlayerAdvancements.award
(AdvancementHolder p_298135_, String p_135990_) PlayerAdvancements.getOrStartProgress
(AdvancementHolder p_299379_) private void
PlayerAdvancements.markForVisibilityUpdate
(AdvancementHolder p_298258_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.registerListener
(AdvancementHolder p_297859_, String p_300029_, Criterion<T> p_298869_) private void
PlayerAdvancements.registerListeners
(AdvancementHolder p_299071_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.removeListener
(AdvancementHolder p_301071_, String p_298445_, Criterion<T> p_297428_) boolean
PlayerAdvancements.revoke
(AdvancementHolder p_297905_, String p_136000_) void
PlayerAdvancements.setSelectedTab
(AdvancementHolder p_300452_) private void
PlayerAdvancements.startProgress
(AdvancementHolder p_299830_, AdvancementProgress p_135987_) private void
PlayerAdvancements.unregisterListeners
(AdvancementHolder p_298363_) Modifier and TypeMethodDescriptionprivate void
PlayerAdvancements.updateTreeVisibility
(AdvancementNode p_298387_, Set<AdvancementHolder> p_265206_, Set<ResourceLocation> p_265593_) -
Uses of AdvancementHolder in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static List<AdvancementHolder>
AdvancementCommands.getAdvancements
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_298043_, AdvancementHolder p_300683_, AdvancementCommands.Mode p_136335_) Modifier and TypeMethodDescriptionprivate static List<AdvancementHolder>
AdvancementCommands.getAdvancements
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_298043_, AdvancementHolder p_300683_, AdvancementCommands.Mode p_136335_) protected abstract boolean
AdvancementCommands.Action.perform
(ServerPlayer p_136384_, AdvancementHolder p_298402_) protected abstract boolean
AdvancementCommands.Action.performCriterion
(ServerPlayer p_136382_, AdvancementHolder p_300251_, String p_298964_) private static int
AdvancementCommands.performCriterion
(CommandSourceStack p_136325_, Collection<ServerPlayer> p_136326_, AdvancementCommands.Action p_136327_, AdvancementHolder p_299259_, String p_136329_) Modifier and TypeMethodDescriptionprivate static void
AdvancementCommands.addChildren
(AdvancementNode p_300493_, List<AdvancementHolder> p_136332_) int
AdvancementCommands.Action.perform
(ServerPlayer p_136380_, Iterable<AdvancementHolder> p_136381_) -
Uses of AdvancementHolder in net.minecraftforge.client
Modifier and TypeMethodDescriptionClientCommandSourceStack.getAdvancement
(ResourceLocation id) Returns the advancement from the id from the client side where the advancement needs to be visible to the player. -
Uses of AdvancementHolder in net.minecraftforge.common.crafting
Modifier and TypeFieldDescriptionprivate final AdvancementHolder
ConditionalRecipe.InnerAdvancement.advancement
The field for theadvancement
record component.Modifier and TypeMethodDescriptionConditionalRecipe.InnerAdvancement.advancement()
Returns the value of theadvancement
record component.Modifier and TypeMethodDescriptionConditionalAdvancement.Builder.advancement
(AdvancementHolder holder) ConditionalRecipe.Builder.recipe
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement) ModifierConstructorDescriptionprivate
InnerAdvancement
(ICondition condition, AdvancementHolder advancement) Creates an instance of aInnerAdvancement
record class. -
Uses of AdvancementHolder in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>
ForgeRecipeProvider.buildAdvancement
(CachedOutput p_253674_, AdvancementHolder p_297687_) Modifier and TypeMethodDescriptionvoid
ForgeAdvancementProvider.AdvancementGenerator.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper) A method used to generate advancements for a mod. -
Uses of AdvancementHolder in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault AdvancementHolder
IForgeCommandSourceStack.getAdvancement
(ResourceLocation id) -
Uses of AdvancementHolder in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.onAdvancementEarned
(Player player, AdvancementHolder holder) static void
ForgeEventFactory.onAdvancementGrant
(Player player, AdvancementHolder holder, AdvancementProgress advancementProgress, String criterion) static void
ForgeEventFactory.onAdvancementRevoke
(Player player, AdvancementHolder holder, AdvancementProgress advancementProgress, String criterion) -
Uses of AdvancementHolder in net.minecraftforge.event.entity.player
ModifierConstructorDescriptionAdvancementEarnEvent
(Player player, AdvancementHolder earned) AdvancementEvent
(Player player, AdvancementHolder advancement) AdvancementProgressEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterionName, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType)