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 TypeMethodDescriptionAdvancementTree.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 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_) 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_) 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_) 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_297687_) protected CompletableFuture<?>
RecipeProvider.saveAdvancement
(CachedOutput output, com.google.gson.JsonObject advancementJson, AdvancementHolder holder, FinishedRecipe finishedRecipe) Called every time a recipe is saved to also save the advancement JSON if it exists.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_297223_, 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_297821_) (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_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.data
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>
ForgeRecipeProvider.buildAdvancement
(CachedOutput p_253674_, AdvancementHolder p_297687_) protected @Nullable CompletableFuture<?>
ForgeRecipeProvider.saveAdvancement
(CachedOutput output, com.google.gson.JsonObject advancementJson, AdvancementHolder holder, FinishedRecipe finishedRecipe) 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)