Uses of Record Class
net.minecraft.advancements.AdvancementHolder
Package
Description
Classes for NeoForge's own data generation.
-
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_301204_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) Modifier and TypeMethodDescriptionAdvancementTree.get
(AdvancementHolder p_301246_) static Component
Advancement.name
(AdvancementHolder p_300875_) Advancement.Builder.parent
(AdvancementHolder p_301226_) private boolean
AdvancementTree.tryInsert
(AdvancementHolder p_301290_) Modifier and TypeMethodDescriptionvoid
AdvancementTree.addAll
(Collection<AdvancementHolder> p_301192_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) ModifierConstructorDescriptionAdvancementNode
(AdvancementHolder p_301037_, AdvancementNode p_301236_) 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_301071_) AdvancementTab.getWidget
(AdvancementHolder p_301219_) void
AdvancementsScreen.onSelectedTabChanged
(AdvancementHolder p_301084_) -
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_301171_) void
ClientAdvancements.setSelectedTab
(AdvancementHolder p_301030_, boolean p_104403_) -
Uses of AdvancementHolder in net.minecraft.client.telemetry
Modifier and TypeMethodDescriptionvoid
WorldSessionTelemetryManager.onAdvancementDone
(Level p_286825_, AdvancementHolder p_301169_) -
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 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_300959_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) Modifier and TypeMethodDescriptionprotected static void
VanillaAdventureAdvancements.createAdventuringTime
(Consumer<AdvancementHolder> p_275645_, AdvancementHolder p_301274_, MultiNoiseBiomeSourceParameterList.Preset p_275211_) static AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_300959_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) Modifier and TypeMethodDescriptionprotected static void
VanillaAdventureAdvancements.createAdventuringTime
(Consumer<AdvancementHolder> p_275645_, AdvancementHolder p_301274_, MultiNoiseBiomeSourceParameterList.Preset p_275211_) static AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_300959_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) 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 TypeFieldDescriptionprivate final AdvancementHolder
ShapedRecipeBuilder.Result.advancement
private final AdvancementHolder
ShapelessRecipeBuilder.Result.advancement
private final AdvancementHolder
SimpleCookingRecipeBuilder.Result.advancement
The field for theadvancement
record component.private final AdvancementHolder
SingleItemRecipeBuilder.Result.advancement
The field for theadvancement
record component.private final AdvancementHolder
SmithingTransformRecipeBuilder.Result.advancement
The field for theadvancement
record component.private final AdvancementHolder
SmithingTrimRecipeBuilder.Result.advancement
The field for theadvancement
record component.Modifier and TypeMethodDescriptionFinishedRecipe.advancement()
ShapedRecipeBuilder.Result.advancement()
ShapelessRecipeBuilder.Result.advancement()
SimpleCookingRecipeBuilder.Result.advancement()
Returns the value of theadvancement
record component.SingleItemRecipeBuilder.Result.advancement()
Returns the value of theadvancement
record component.SmithingTransformRecipeBuilder.Result.advancement()
Returns the value of theadvancement
record component.SmithingTrimRecipeBuilder.Result.advancement()
Returns the value of theadvancement
record component.Modifier and TypeMethodDescriptionprotected CompletableFuture<?>
RecipeProvider.buildAdvancement
(CachedOutput p_253674_, AdvancementHolder p_301116_) ModifierConstructorDescriptionResult
(ResourceLocation p_273548_, Item p_273530_, int p_272738_, String p_273549_, CraftingBookCategory p_273500_, List<String> p_273744_, Map<Character, Ingredient> p_272991_, AdvancementHolder p_300903_, boolean p_272862_) Result
(ResourceLocation p_249007_, Item p_248667_, int p_249014_, String p_248592_, CraftingBookCategory p_249485_, List<Ingredient> p_252312_, AdvancementHolder p_301041_) (package private)
Result
(ResourceLocation id, String group, CookingBookCategory category, Ingredient ingredient, Item result, float experience, int cookingTime, AdvancementHolder advancement, RecipeSerializer<? extends AbstractCookingRecipe> type) Creates an instance of aResult
record class.Result
(ResourceLocation id, RecipeSerializer<?> type, String group, Ingredient ingredient, Item result, int count, AdvancementHolder advancement) Creates an instance of aResult
record class.Result
(ResourceLocation id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementHolder advancement) Creates an instance of aResult
record class.Result
(ResourceLocation id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, AdvancementHolder advancement) Creates an instance of aResult
record class. -
Uses of AdvancementHolder in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final List<AdvancementHolder>
ClientboundUpdateAdvancementsPacket.added
Modifier and TypeMethodDescriptionServerboundSeenAdvancementsPacket.openedTab
(AdvancementHolder p_301294_) 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_300979_, String p_135990_) PlayerAdvancements.getOrStartProgress
(AdvancementHolder p_301185_) private void
PlayerAdvancements.markForVisibilityUpdate
(AdvancementHolder p_301097_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.registerListener
(AdvancementHolder p_301059_, String p_300946_, Criterion<T> p_300887_) private void
PlayerAdvancements.registerListeners
(AdvancementHolder p_301053_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.removeListener
(AdvancementHolder p_301213_, String p_301253_, Criterion<T> p_301311_) boolean
PlayerAdvancements.revoke
(AdvancementHolder p_301073_, String p_136000_) void
PlayerAdvancements.setSelectedTab
(AdvancementHolder p_301180_) private void
PlayerAdvancements.startProgress
(AdvancementHolder p_300931_, AdvancementProgress p_135987_) private void
PlayerAdvancements.unregisterListeners
(AdvancementHolder p_301082_) Modifier and TypeMethodDescriptionprivate void
PlayerAdvancements.updateTreeVisibility
(AdvancementNode p_301178_, 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_300960_, AdvancementHolder p_301220_, AdvancementCommands.Mode p_136335_) Modifier and TypeMethodDescriptionprivate static List<AdvancementHolder>
AdvancementCommands.getAdvancements
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_300960_, AdvancementHolder p_301220_, AdvancementCommands.Mode p_136335_) protected abstract boolean
AdvancementCommands.Action.perform
(ServerPlayer p_136384_, AdvancementHolder p_301251_) protected abstract boolean
AdvancementCommands.Action.performCriterion
(ServerPlayer p_136382_, AdvancementHolder p_301120_, String p_301262_) private static int
AdvancementCommands.performCriterion
(CommandSourceStack p_136325_, Collection<ServerPlayer> p_136326_, AdvancementCommands.Action p_136327_, AdvancementHolder p_301324_, String p_136329_) Modifier and TypeMethodDescriptionprivate static void
AdvancementCommands.addChildren
(AdvancementNode p_300871_, List<AdvancementHolder> p_136332_) int
AdvancementCommands.Action.perform
(ServerPlayer p_136380_, Iterable<AdvancementHolder> p_136381_) -
Uses of AdvancementHolder in net.neoforged.neoforge.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.neoforged.neoforge.common.data
Modifier and TypeMethodDescriptionvoid
AdvancementProvider.AdvancementGenerator.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper) A method used to generate advancements for a mod. -
Uses of AdvancementHolder in net.neoforged.neoforge.common.data.internal
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>
NeoForgeRecipeProvider.buildAdvancement
(CachedOutput p_253674_, AdvancementHolder p_301116_) -
Uses of AdvancementHolder in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault AdvancementHolder
ICommandSourceStackExtension.getAdvancement
(ResourceLocation id) default AdvancementHolder
IAdvancementBuilderExtension.save
(Consumer<AdvancementHolder> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known.Modifier and TypeMethodDescriptiondefault AdvancementHolder
IAdvancementBuilderExtension.save
(Consumer<AdvancementHolder> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known. -
Uses of AdvancementHolder in net.neoforged.neoforge.debug
Modifier and TypeMethodDescriptionvoid
DataGeneratorTest.Advancements.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper) -
Uses of AdvancementHolder in net.neoforged.neoforge.debug.advancements
Modifier and TypeMethodDescriptionvoid
CustomPredicateTest.AdvancementGenerator.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper) -
Uses of AdvancementHolder in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic void
EventHooks.onAdvancementEarnedEvent
(Player player, AdvancementHolder earned) static void
EventHooks.onAdvancementProgressedEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterion, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType) -
Uses of AdvancementHolder in net.neoforged.neoforge.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)